Fix incorrect applying grainline position correction.

This commit is contained in:
Roman Telezhynskyi 2023-10-13 15:20:01 +03:00
parent f430dbae1f
commit 3058c2fc33

View File

@ -1816,11 +1816,11 @@ auto VAbstractPiece::GrainlineMainLine(const VGrainlineData &geom, const VContai
qreal dY = 0;
if (not IsItemContained(boundingRect, v, dX, dY))
{
pt1.rx() = +dX;
pt1.ry() = +dY;
pt1.rx() += dX;
pt1.ry() += dY;
pt2.rx() = +dX;
pt2.ry() = +dY;
pt2.rx() += dX;
pt2.ry() += dY;
}
return {pt1, pt2};