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();
|
QVector<VLayoutPlaceLabel> placeLabels = piece->GetPlaceLabels();
|
||||||
for (auto &label : placeLabels)
|
for (auto &label : placeLabels)
|
||||||
{
|
{
|
||||||
label.SetCenter(matrix.map(label.Center()));
|
label.SetRotationMatrix(label.RotationMatrix() * matrix);
|
||||||
label.SetBox(label.Box().translated(-offset.x(), -offset.y()));
|
|
||||||
}
|
}
|
||||||
piece->SetPlaceLabels(placeLabels);
|
piece->SetPlaceLabels(placeLabels);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user