summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2018-08-08 17:57:51 +0200
committerAndras Timar <andras.timar@collabora.com>2018-08-20 10:14:17 +0200
commit406280c62843e9ed167e7adaa005fba92a39608f (patch)
tree43e766ba0aa3f21016603a9515a7def71011b361 /oox/source
parent409fd186af22bd9c1819cc0f05bfca3bdf427a42 (diff)
tdf#116350 Fix export of fontwork
Change-Id: Icf3a07c6b79296feb233bbe08a6d69ab21a41414 Reviewed-on: https://gerrit.libreoffice.org/58746 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/58841 Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/export/shapes.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 95cc968f76ff..8c4b2daaaff0 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -744,6 +744,9 @@ ShapeExport& ShapeExport::WriteCustomShape( const Reference< XShape >& xShape )
bool bFlipH = false;
bool bFlipV = false;
+ // Avoid interference of preset type to the next shape
+ m_presetWarp = "";
+
if( GETA( CustomShapeGeometry ) ) {
SAL_INFO("oox.shape", "got custom shape geometry");
if( mAny >>= aGeometrySeq ) {
@@ -1007,7 +1010,9 @@ ShapeExport& ShapeExport::WriteCustomShape( const Reference< XShape >& xShape )
}
if( rXPropSet.is() )
{
- WriteFill( rXPropSet );
+ // Preset shape with text has no fill
+ if( sShapeType.isEmpty() || !sShapeType.startsWith( "fontwork" ) )
+ WriteFill( rXPropSet );
WriteOutline( rXPropSet );
WriteShapeEffects( rXPropSet );
WriteShape3DEffects( rXPropSet );