Fix cleaning place label position.

This commit is contained in:
Roman Telezhynskyi 2023-11-10 11:01:03 +02:00
parent f455100b14
commit 8264e94abd

View File

@ -500,8 +500,7 @@ void VPPiece::CleanPosition(const VPPiecePtr &piece)
QVector<VLayoutPlaceLabel> placeLabels = piece->GetPlaceLabels();
for (auto &label : placeLabels)
{
label.SetCenter(matrix.map(label.Center()));
label.SetBox(label.Box().translated(-offset.x(), -offset.y()));
label.SetRotationMatrix(label.RotationMatrix() * matrix);
}
piece->SetPlaceLabels(placeLabels);
}