Fix bug with width and height restricted by pin points.
--HG-- branch : feature
This commit is contained in:
parent
de6e3d7213
commit
c271a81b1d
|
@ -1234,8 +1234,8 @@ VPieceItem::MoveTypes VToolSeamAllowance::FindLabelGeometry(const VPatternLabelD
|
||||||
const auto bottomRightPinPoint = VAbstractTool::data.GeometricObject<VPointF>(bottomRightPin);
|
const auto bottomRightPinPoint = VAbstractTool::data.GeometricObject<VPointF>(bottomRightPin);
|
||||||
|
|
||||||
const QRectF labelRect = QRectF(*topLeftPinPoint, *bottomRightPinPoint);
|
const QRectF labelRect = QRectF(*topLeftPinPoint, *bottomRightPinPoint);
|
||||||
labelWidth = qAbs(labelRect.width());
|
labelWidth = FromPixel(qAbs(labelRect.width()), *VDataTool::data.GetPatternUnit());
|
||||||
labelHeight = qAbs(labelRect.height());
|
labelHeight = FromPixel(qAbs(labelRect.height()), *VDataTool::data.GetPatternUnit());
|
||||||
|
|
||||||
pos = labelRect.topLeft();
|
pos = labelRect.topLeft();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user