[Libreoffice-commits] core.git: Branch 'feature/autostyle' - xmloff/source
Michael Meeks
michael.meeks at suse.com
Fri Mar 15 12:43:58 PDT 2013
xmloff/source/draw/shapeexport.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2525774da3389af556d9bdd61741afb55ea20e05
Author: Michael Meeks <michael.meeks at suse.com>
Date: Fri Mar 15 19:41:57 2013 +0000
some Get.*Export() methods create and register families - so call them.
Change-Id: I6907b630f75b01dc9c0cfb2931c0142429600184
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 4a4cda3..38e5e30 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 );
More information about the Libreoffice-commits
mailing list