diff options
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFastContextHandler.cxx')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 60c3c03b8d51..bcfc0c10b510 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -416,24 +416,23 @@ void OOXMLFastContextHandler::startParagraphGroup() if (! mpParserState->isInSectionGroup()) startSectionGroup(); - if (! mpParserState->isInParagraphGroup()) - { - mpStream->startParagraphGroup(); - mpParserState->setInParagraphGroup(true); + if ( mpParserState->isInParagraphGroup()) + return; + + mpStream->startParagraphGroup(); + mpParserState->setInParagraphGroup(true); - if (const auto& pPropSet = getPropertySet()) + if (const auto& pPropSet = getPropertySet()) + { + OOXMLPropertySetEntryToString aHandler(NS_ooxml::LN_AG_Parids_paraId); + pPropSet->resolve(aHandler); + if (const OUString& sText = aHandler.getString(); !sText.isEmpty()) { - OOXMLPropertySetEntryToString aHandler(NS_ooxml::LN_AG_Parids_paraId); - pPropSet->resolve(aHandler); - if (const OUString& sText = aHandler.getString(); !sText.isEmpty()) - { - OOXMLStringValue::Pointer_t pVal = new OOXMLStringValue(sText); - OOXMLPropertySet::Pointer_t pPropertySet(new OOXMLPropertySet); - pPropertySet->add(NS_ooxml::LN_AG_Parids_paraId, pVal, OOXMLProperty::ATTRIBUTE); - mpStream->props(pPropertySet.get()); - } + OOXMLStringValue::Pointer_t pVal = new OOXMLStringValue(sText); + OOXMLPropertySet::Pointer_t pPropertySet(new OOXMLPropertySet); + pPropertySet->add(NS_ooxml::LN_AG_Parids_paraId, pVal, OOXMLProperty::ATTRIBUTE); + mpStream->props(pPropertySet.get()); } - } } |