summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTibor Nagy <nagy.tibor2@nisz.hu>2022-01-04 14:38:47 +0100
committerLászló Németh <nemeth@numbertext.org>2022-02-02 11:37:07 +0100
commit22b66d4083d34cbce2b7b48daeed3152bf9877b7 (patch)
tree0c6797568b06a25da863365023220a014f3c02c7 /oox
parentfd7a84aca0c94044bbc3bfb8852a1ae5115845bf (diff)
tdf#137675 PPTX export: adding missing fill="none" to a:path
Follow-up to commit 9310e47e2ce71348a16e5412131946348833f4b2 "tdf#101122 DOCX custom shape export: remove bad fill". Change-Id: I2acdae3964c31ee366387d9938fe366405dcace9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127944 Tested-by: Jenkins Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
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 cdc026375d10..09ca9c22915a 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -3796,9 +3796,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) );
}
@@ -3825,6 +3830,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) );
}