diff options
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) { |