summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-09-24 15:25:25 +0000
committerXisco Fauli <anistenis@gmail.com>2013-05-18 19:02:26 +0200
commit14589274cd9999dd3f9ef844cc1aff20e106a977 (patch)
treea15a249c0ecaa36137a29599847d1683f459df20 /xmloff/source
parentf9da1991ed0cf5936797d92f004462dbe93f1be7 (diff)
#121090# corrceted point reduction on svg:d export to only happen when polygon is closed(cherry picked from commit 6e114c242bb21950fd8ea01885c2269744d0fc6f)
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/draw/xexptran.cxx4
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)
{