Refactoring

This commit is contained in:
Prokhorov Kirill
2024-09-20 16:07:08 +03:00
committed by Oleg Korshul
parent 5df63a58b7
commit 9ee9192cd4
6 changed files with 288 additions and 296 deletions

View File

@ -899,6 +899,16 @@ namespace Aggplus
}
}
if (!close)
{
PointD firstPoint = subPath->GetPoints(0, 1)[0];
double x, y;
subPath->GetLastPoint(x, y);
if (!firstPoint.Equals(PointD(x, y)) || subPath->GetPointCount() == 1) subPath->LineTo(firstPoint.X, firstPoint.Y);
subPath->CloseFigure();
result.push_back(subPath);
}
return result;
}