sw33bf09: #i114163#: SvXMLExportItemMapper::QueryXMLValue():

write proper value "auto" instead of "0" for style:page-number.
This commit is contained in:
Michael Stahl
2010-09-09 16:37:04 +02:00
parent 2093818a3e
commit 7edaf190e2

View File

@@ -926,9 +926,15 @@ sal_Bool SvXMLExportItemMapper::QueryXMLValue(
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;
}
}