[Libreoffice-bugs] [Bug 116214] Custom properties: value type is changed from Number to Text

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Oct 20 14:51:44 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=116214

--- Comment #3 from Bartosz <gang65 at poczta.onet.pl> ---
The validation is made in method:

bool CustomPropertiesWindow::IsLineValid( CustomPropertyLine* pLine ) const
in sfx2/source/dialog/dinfdlg.cxx:1403

it seems that if data type is CUSTOM_TYPE_NUMBER, then we are always checking
if the format is NF_NUMBER_SYSTEM ( #,##0.00 )

    if ( CUSTOM_TYPE_NUMBER == nType )
        nIndex = const_cast< SvNumberFormatter& >(
            m_aNumberFormatter ).GetFormatIndex( NF_NUMBER_SYSTEM );

but also valid format is also  NF_SCIENTIFIC_000E00 ( 0.00E+00 ).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201020/491fd550/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list