summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 4731f556967e..e1062795e3ae 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -3712,9 +3712,14 @@ bool DrawingML::WriteCustomGeometry(
XML_r, "r", XML_b, "b");
mpFS->startElementNS(XML_a, XML_pathLst);
+ std::optional<OString> sFill;
+ if (HasEnhancedCustomShapeSegmentCommand(rXShape, css::drawing::EnhancedCustomShapeSegmentCommand::NOFILL))
+ sFill = "none"; // for possible values see ST_PathFillMode in OOXML standard
+
if ( aPathSize.hasElements() )
{
mpFS->startElementNS( XML_a, XML_path,
+ XML_fill, sFill,
XML_w, OString::number(aPathSize[0].Width),
XML_h, OString::number(aPathSize[0].Height) );
}
@@ -3741,6 +3746,7 @@ bool DrawingML::WriteCustomGeometry(
nYMax = nY;
}
mpFS->startElementNS( XML_a, XML_path,
+ XML_fill, sFill,
XML_w, OString::number(nXMax - nXMin),
XML_h, OString::number(nYMax - nYMin) );
}