Kaydet (Commit) 6e114c24 authored tarafından Armin Le Grand's avatar Armin Le Grand

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

üst 12a5ff41
......@@ -1622,7 +1622,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