mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 21:00:55 +08:00
Refactoring
This commit is contained in:
committed by
Oleg Korshul
parent
5df63a58b7
commit
9ee9192cd4
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user