From 14589274cd9999dd3f9ef844cc1aff20e106a977 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Mon, 24 Sep 2012 15:25:25 +0000 Subject: #121090# corrceted point reduction on svg:d export to only happen when polygon is closed(cherry picked from commit 6e114c242bb21950fd8ea01885c2269744d0fc6f) --- xmloff/source/draw/xexptran.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xmloff/source') 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) { -- cgit