summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpstyl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/ximpstyl.cxx')
-rw-r--r--xmloff/source/draw/ximpstyl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx
index 2014ea5aec8c..b3b0bc8978d3 100644
--- a/xmloff/source/draw/ximpstyl.cxx
+++ b/xmloff/source/draw/ximpstyl.cxx
@@ -1374,7 +1374,8 @@ void SdXMLStylesContext::ImpSetGraphicStyles( uno::Reference< container::XNameAc
sParentStyleDisplayName = sParentStyleDisplayName.copy( nPrefLen );
}
- xStyle->setParentStyle( sParentStyleDisplayName );
+ if (xStyle->getParentStyle() != sParentStyleDisplayName)
+ xStyle->setParentStyle( sParentStyleDisplayName );
}
}
catch( const Exception& e )