Fix clearing piece transformation.

Mirror state must be cleared as well.
This commit is contained in:
Roman Telezhynskyi 2022-02-19 21:17:00 +02:00
parent 78eca1859c
commit 460385c3ad

View File

@ -185,6 +185,8 @@ void VPPiece::ClearTransformations()
// (0,0) in the sheet coordinate system // (0,0) in the sheet coordinate system
const QPointF offset = MappedDetailBoundingRect().topLeft(); const QPointF offset = MappedDetailBoundingRect().topLeft();
Translate(-offset.x(), -offset.y()); Translate(-offset.x(), -offset.y());
SetMirror(false);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------