diff options
Diffstat (limited to 'xmloff/source/text/XMLTextNumRuleInfo.cxx')
-rw-r--r-- | xmloff/source/text/XMLTextNumRuleInfo.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/xmloff/source/text/XMLTextNumRuleInfo.cxx b/xmloff/source/text/XMLTextNumRuleInfo.cxx index 062b92879ee2..5f9a5e2b7a54 100644 --- a/xmloff/source/text/XMLTextNumRuleInfo.cxx +++ b/xmloff/source/text/XMLTextNumRuleInfo.cxx @@ -54,14 +54,14 @@ void XMLTextNumRuleInfo::Set( const css::uno::Reference < css::text::XTextContent > & xTextContent, const bool bOutlineStyleAsNormalListStyle, const XMLTextListAutoStylePool& rListAutoPool, - const bool bExportTextNumberElement ) + const bool bExportTextNumberElement, + const bool bListIdIsDefault ) { Reset(); // Written OpenDocument file format doesn't fit to the created text document (#i69627#) mbOutlineStyleAsNormalListStyle = bOutlineStyleAsNormalListStyle; Reference< XPropertySet > xPropSet( xTextContent, UNO_QUERY ); - Reference<XPropertyState> xPropState(xTextContent, UNO_QUERY); Reference< XPropertySetInfo > xPropSetInfo = xPropSet->getPropertySetInfo(); // check if this paragraph supports a numbering @@ -138,14 +138,10 @@ void XMLTextNumRuleInfo::Set( if( xPropSetInfo->hasPropertyByName( "ListId" ) ) { xPropSet->getPropertyValue( "ListId" ) >>= msListId; - - if (xPropState.is()) - { - mbListIdIsDefault - = xPropState->getPropertyState("ListId") == PropertyState_DEFAULT_VALUE; - } } + mbListIdIsDefault = bListIdIsDefault; + mbContinueingPreviousSubTree = false; if( xPropSetInfo->hasPropertyByName( "ContinueingPreviousSubTree" ) ) { |