Kaydet (Commit) fa135486 authored tarafından Justin Luth's avatar Justin Luth Kaydeden (comit) Justin Luth

related tdf#47471 textgraphic: use stylename if autostyle missing

The same fix for 47471 should also be useful for textgraphics.

Change-Id: I27cef6bd22fbc4f2a94fb17231a3c385987364e0
Reviewed-on: https://gerrit.libreoffice.org/65619
Tested-by: Jenkins
Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
üst 0649347b
......@@ -3076,8 +3076,9 @@ void XMLTextParagraphExport::_exportTextGraphic(
rPropSet->getPropertyValue( gsFrameStyleName ) >>= sStyle;
}
OUString sAutoStyle( sStyle );
sAutoStyle = Find( XML_STYLE_FAMILY_TEXT_FRAME, rPropSet, sStyle );
OUString sAutoStyle = Find( XML_STYLE_FAMILY_TEXT_FRAME, rPropSet, sStyle );
if ( sAutoStyle.isEmpty() )
sAutoStyle = sStyle;
if( !sAutoStyle.isEmpty() )
GetExport().AddAttribute( XML_NAMESPACE_DRAW, XML_STYLE_NAME,
GetExport().EncodeStyleName( sAutoStyle ) );
......
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