Kaydet (Commit) 14589274 authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Xisco Fauli

#121090# corrceted point reduction on svg:d export to only happen when polygon…

#121090# corrceted point reduction on svg:d export to only happen when polygon is closed(cherry picked from commit 6e114c24)
üst f9da1991
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment