summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2000-11-14 12:43:09 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2000-11-14 12:43:09 +0000
commitb71e1da56b515e6ad6f69be7edce75c2c0d658ed (patch)
tree852eb2071b64b50b3d54e66ee8eccf7cef3a8729
parentcd863053c067fe97d8104020209cda2ae407f9b4 (diff)
#80284# fixed: page-number field import in Calc/Draw/...
-rw-r--r--xmloff/source/text/txtfldi.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index e4e93f7f09ae..98f360636ff1 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtfldi.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: cl $ $Date: 2000-11-12 15:58:58 $
+ * last change: $Author: dvo $ $Date: 2000-11-14 13:43:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1049,10 +1049,13 @@ void XMLPageNumberImportContext::PrepareField(
Reference<XPropertySetInfo> xPropertySetInfo(
xPropertySet->getPropertySetInfo());
- aAny <<= sNumberFormatOK ?
- SvxXMLListStyleContext::GetNumType(sNumberFormat, sNumberSync) :
- style::NumberingType::PAGE_DESCRIPTOR;
- xPropertySet->setPropertyValue(sPropertyNumberingType, aAny);
+ if (xPropertySetInfo->hasPropertyByName(sPropertyNumberingType))
+ {
+ aAny <<= sNumberFormatOK ?
+ SvxXMLListStyleContext::GetNumType(sNumberFormat, sNumberSync) :
+ style::NumberingType::PAGE_DESCRIPTOR;
+ xPropertySet->setPropertyValue(sPropertyNumberingType, aAny);
+ }
if (xPropertySetInfo->hasPropertyByName(sPropertyOffset))
{