Change direction of sheet grainline to avoid user confusion.

This commit is contained in:
Roman Telezhynskyi 2024-04-05 18:17:56 +03:00
parent 34ed181558
commit 812414f0ea

View File

@ -254,7 +254,7 @@ void VPPiece::RotateToGrainline(const VPTransformationOrigon &origin)
return;
}
QLineF fabricGrainline(grainline.p1().x(), grainline.p1().y(), grainline.p1().x() + 100, grainline.p1().y());
QLineF fabricGrainline(grainline.p1().x(), grainline.p1().y(), grainline.p1().x() - 100, grainline.p1().y());
if (sheet->GrainlineOrientation() == GrainlineType::Vertical)
{
fabricGrainline.setAngle(fabricGrainline.angle() - 90);