This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch odf-devel in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit bf4c88966376b7d3813dd18c2bea845f93f26d83 Author: Jim Jagielski <[email protected]> AuthorDate: Thu Oct 29 14:07:22 2026 -0400 xmloff: read a missing number:transliteration-style as short --- main/xmloff/source/style/xmlnumfi.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/xmloff/source/style/xmlnumfi.cxx b/main/xmloff/source/style/xmlnumfi.cxx index 922a0031e5..37c4d50244 100644 --- a/main/xmloff/source/style/xmlnumfi.cxx +++ b/main/xmloff/source/style/xmlnumfi.cxx @@ -1467,6 +1467,9 @@ SvXMLNumFormatContext::SvXMLNumFormatContext( SvXMLImport& rImport, SvNumberFormatter* pFormatter = pData->GetNumberFormatter(); if ( pFormatter ) { + // ODF 1.2 19.364: a missing style means "short" + if ( !aNatNumAttr.Style.getLength() ) + aNatNumAttr.Style = GetXMLToken( XML_SHORT ); sal_Int32 nNatNum = pFormatter->GetNatNum()->convertFromXmlAttributes( aNatNumAttr ); aFormatCode.appendAscii( RTL_CONSTASCII_STRINGPARAM( "[NatNum" ) ); aFormatCode.append( nNatNum, 10 );
