From c271a81b1d098c0cf380f0ea7fd59edf65ccf584 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 14 Mar 2017 11:20:06 +0200 Subject: [PATCH] Fix bug with width and height restricted by pin points. --HG-- branch : feature --- src/libs/vtools/tools/vtoolseamallowance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vtools/tools/vtoolseamallowance.cpp b/src/libs/vtools/tools/vtoolseamallowance.cpp index 95c2a334d..d2b0da730 100644 --- a/src/libs/vtools/tools/vtoolseamallowance.cpp +++ b/src/libs/vtools/tools/vtoolseamallowance.cpp @@ -1234,8 +1234,8 @@ VPieceItem::MoveTypes VToolSeamAllowance::FindLabelGeometry(const VPatternLabelD const auto bottomRightPinPoint = VAbstractTool::data.GeometricObject(bottomRightPin); const QRectF labelRect = QRectF(*topLeftPinPoint, *bottomRightPinPoint); - labelWidth = qAbs(labelRect.width()); - labelHeight = qAbs(labelRect.height()); + labelWidth = FromPixel(qAbs(labelRect.width()), *VDataTool::data.GetPatternUnit()); + labelHeight = FromPixel(qAbs(labelRect.height()), *VDataTool::data.GetPatternUnit()); pos = labelRect.topLeft();