Commits

Anonymous committed dcf014a

sw33bf09: #i114163#: SvXMLExportItemMapper::QueryXMLValue():
write proper value "auto" instead of "0" for style:page-number.

  • Participants
  • Parent commits 1907aee

Comments (0)

Files changed (1)

File sw/source/filter/xml/xmlexpit.cxx

 
             if( MID_PAGEDESC_PAGENUMOFFSET==nMemberId )
             {
-
-                rUnitConverter.convertNumber(
-                    aOut, (sal_Int32)pPageDesc->GetNumOffset() );
+                sal_Int32 const number(pPageDesc->GetNumOffset());
+                if (0 >= number)
+                {
+                    aOut.append(GetXMLToken(XML_AUTO));
+                }
+                else // #i114163# positiveInteger only!
+                {
+                    rUnitConverter.convertNumber(aOut, number);
+                }
                 bOk = sal_True;
             }
         }