diff options
author | Vasily Melenchuk <Vasily.Melenchuk@cib.de> | 2017-07-25 18:08:13 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-08-29 12:40:48 +0200 |
commit | d3f1fa3cf190b83d585ec3d1b1a8e5b0896c8ea1 (patch) | |
tree | b9007d0ceb59853a223efc29651d05ddcbcc4428 /filter | |
parent | 80798551e77dab68b49c3e19fad5b455afe0ef45 (diff) |
tdf#100492 Skip empty shapes in SVG export
Some shapes do not contain polyline and meanwhile contain start/end
arrows. This is causing unexpected line endings appear in export.
TODO: Unittest is disabled, since XML parsing returns only root node
without children. So XPATH assert fails.
Change-Id: Ibc28f12b0f3838065978a674f0debe8e1b8103e9
Reviewed-on: https://gerrit.libreoffice.org/40422
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 069309f540c1..2bf4b1c0ad2d 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -3283,7 +3283,7 @@ void SVGActionWriter::ImplWriteActions( const GDIMetaFile& rMtf, } } - if(mapCurShape.get() &&(aStartArrow.Count() || aEndArrow.Count())) + if(mapCurShape.get() && mapCurShape->maShapePolyPoly.Count() && (aStartArrow.Count() || aEndArrow.Count())) { ImplWriteShape( *mapCurShape ); |