Commit 0504dee1 authored by Thorsten Zachmann's avatar Thorsten Zachmann

o small fix in saving style to the right place

svn path=/trunk/koffice/; revision=636628
parent aaa30ad2
...@@ -160,15 +160,18 @@ bool KoShape::saveOdf( KoShapeSavingContext & context ) ...@@ -160,15 +160,18 @@ bool KoShape::saveOdf( KoShapeSavingContext & context )
QString KoShape::getStyle( KoShapeSavingContext &context ) QString KoShape::getStyle( KoShapeSavingContext &context )
{ {
KoGenStyle style; KoGenStyle style;
if ( context.isSet( KoShapeSavingContext::PresentationShape ) ) if ( context.isSet( KoShapeSavingContext::PresentationShape ) ) {
style = KoGenStyle( KoGenStyle::STYLE_PRESENTATIONAUTO, "presentation" ); style = KoGenStyle( KoGenStyle::STYLE_PRESENTATIONAUTO, "presentation" );
else }
else {
style = KoGenStyle( KoGenStyle::STYLE_GRAPHICAUTO, "graphic" ); style = KoGenStyle( KoGenStyle::STYLE_GRAPHICAUTO, "graphic" );
}
fillStyle( style, context ); fillStyle( style, context );
if ( KoShapeSavingContext::AutoStyleInStyleXml ) if ( context.isSet( KoShapeSavingContext::AutoStyleInStyleXml ) ) {
style.setAutoStyleInStylesDotXml( true ); style.setAutoStyleInStylesDotXml( true );
}
return context.mainStyles().lookup( style, context.isSet( KoShapeSavingContext::PresentationShape ) ? "pr" : "gr" ); return context.mainStyles().lookup( style, context.isSet( KoShapeSavingContext::PresentationShape ) ? "pr" : "gr" );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment