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 fe667bb0b49ed717f0ff9ea20efba2f1dd4246e2
Author: Jim Jagielski <[email protected]>
AuthorDate: Thu Oct 22 16:26:55 2026 -0400

    xmloff: don't write a 0 fo:hyphenation char count
    
    An explicit 0 is no longer written, so such a style now inherits its 
parent's count on reload.
---
 main/xmloff/source/text/txtprmap.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/xmloff/source/text/txtprmap.cxx 
b/main/xmloff/source/text/txtprmap.cxx
index cabcdf304a..2b427b6394 100644
--- a/main/xmloff/source/text/txtprmap.cxx
+++ b/main/xmloff/source/text/txtprmap.cxx
@@ -284,8 +284,8 @@ XMLPropertyMapEntry aXMLParaPropMap[] =
        MP_ED( "ParaTabStops",          STYLE,  TAB_STOPS,                      
MID_FLAG_ELEMENT_ITEM|XML_TYPE_TEXT_TABSTOP, CTF_TABSTOP ),     // this is not 
really a string!
        // RES_PARATR_HYPHENZONE
        MT_E( "ParaIsHyphenation",      FO,             HYPHENATE,              
        XML_TYPE_BOOL, 0 ),
-       MT_E( "ParaHyphenationMaxLeadingChars", FO, 
HYPHENATION_REMAIN_CHAR_COUNT, XML_TYPE_NUMBER16, 0 ),
-       MT_E( "ParaHyphenationMaxTrailingChars",FO, 
HYPHENATION_PUSH_CHAR_COUNT, XML_TYPE_NUMBER16, 0 ),
+       MT_E( "ParaHyphenationMaxLeadingChars", FO, 
HYPHENATION_REMAIN_CHAR_COUNT, XML_TYPE_NUMBER16_NO_ZERO, 0 ),
+       MT_E( "ParaHyphenationMaxTrailingChars",FO, 
HYPHENATION_PUSH_CHAR_COUNT, XML_TYPE_NUMBER16_NO_ZERO, 0 ),
        MP_E( "ParaHyphenationMaxHyphens",      FO, HYPHENATION_LADDER_COUNT, 
XML_TYPE_NUMBER16_NONE, 0 ),
        // RES_PARATR_DROP
        MP_E( "DropCapWholeWord",       STYLE,  LENGTH,         
MID_FLAG_SPECIAL_ITEM|XML_TYPE_BOOL, CTF_DROPCAPWHOLEWORD ),

Reply via email to