diff options
author | Armin Le Grand <alg@apache.org> | 2012-09-24 15:25:25 +0000 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2013-05-18 19:02:26 +0200 |
commit | 14589274cd9999dd3f9ef844cc1aff20e106a977 (patch) | |
tree | a15a249c0ecaa36137a29599847d1683f459df20 /xmloff | |
parent | i121965 Take draw:transform into account for draw:connector shapes (diff) | |
download | core-14589274cd9999dd3f9ef844cc1aff20e106a977.tar.gz core-14589274cd9999dd3f9ef844cc1aff20e106a977.zip |
#121090# corrceted point reduction on svg:d export to only happen when polygon is closed(cherry picked from commit 6e114c242bb21950fd8ea01885c2269744d0fc6f)
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/xexptran.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx index 2bed18d85f32..61a0771f3d2a 100644 --- a/xmloff/source/draw/xexptran.cxx +++ b/xmloff/source/draw/xexptran.cxx @@ -1581,7 +1581,9 @@ void SdXMLImExSvgDElement::AddPolygon( // Test for Last point same -> closed, ignore last point. Take // some more circumstances in account when looking at curve segments. drawing::PolygonFlags* pFlagArray = (pFlags) ? pFlags->getArray() : 0L; - if((pPointArray->X == (pPointArray + (nCnt - 1))->X) && (pPointArray->Y == (pPointArray + (nCnt - 1))->Y)) + + // #121090# only reduce double start/end points if polygon *is* closed + if(bClosed && (pPointArray->X == (pPointArray + (nCnt - 1))->X) && (pPointArray->Y == (pPointArray + (nCnt - 1))->Y)) { if(pFlags) { |