Fix cleaning place label position.
This commit is contained in:
parent
f455100b14
commit
8264e94abd
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user