summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-03-15 19:41:57 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-03-15 19:41:57 +0000
commit2525774da3389af556d9bdd61741afb55ea20e05 (patch)
tree6857bc19fa6377597880952593e94e8b0c4d2779
parenta7af1d075fe3e5b46345c5191998b0103298057f (diff)
some Get.*Export() methods create and register families - so call them.feature/autostyle
Change-Id: I6907b630f75b01dc9c0cfb2931c0142429600184
-rw-r--r--xmloff/source/draw/shapeexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 4a4cda3093a5..38e5e306c859 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -306,7 +306,6 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
// filter propset
SvXMLAutoFilteredSet xPropStates( mrExport.GetAutoStylePool(), aShapeInfo.mnFamily );
- sal_Int32 nCount = 0;
if( (!bIsEmptyPresObj || (aShapeInfo.meShapeType != XmlShapeTypePresPageShape)) )
{
xPropStates.filter( xPropSet );
@@ -351,6 +350,7 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
// optionaly generate auto style for text attributes
if( (!bIsEmptyPresObj || (aShapeInfo.meShapeType != XmlShapeTypePresPageShape)) && bObjSupportsText )
{
+ GetExport().GetTextParagraphExport(); // creates & registers text-paragraph family
SvXMLAutoFilteredSet xTextPropStates( mrExport.GetAutoStylePool(),
XML_STYLE_FAMILY_TEXT_PARAGRAPH );
xTextPropStates.filter( xPropSet );