diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/XMLGraphicsDefaultStyle.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx b/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx index 598309d44415..dafadbf14961 100644 --- a/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx +++ b/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx @@ -108,14 +108,12 @@ void XMLGraphicsDefaultStyle::SetDefaults() if ( xInfo->hasPropertyByName( sTextWordWrap ) ) xDefaults->setPropertyValue( sTextWordWrap, Any( bWordWrapDefault ) ); - if (!GetImport().IsOOoXML() + if (GetImport().IsOOoXML() && xInfo->hasPropertyByName("IsFollowingTextFlow")) { - // MSO does not support "style:flow-with-text" so "false" is the better - // default (which may be overridden by the FillPropertySet below). - // Do not do this for OOoXML format: OOo 1.x only supported "true" - // so that is the more appropriate default. - xDefaults->setPropertyValue("IsFollowingTextFlow", uno::makeAny(false)); + // OOo 1.x only supported "true" so that is the more appropriate + // default for OOoXML format documents. + xDefaults->setPropertyValue("IsFollowingTextFlow", uno::makeAny(true)); } FillPropertySet( xDefaults ); |