From 762ee18026d133190d444bb652b326a10a5f5f84 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 15 Mar 2019 15:33:30 +0200 Subject: [PATCH] Extend layout sheet paper size to cover coner cases. --HG-- branch : develop --- src/libs/vlayout/vposition.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/vlayout/vposition.cpp b/src/libs/vlayout/vposition.cpp index 608348615..f7923d27a 100644 --- a/src/libs/vlayout/vposition.cpp +++ b/src/libs/vlayout/vposition.cpp @@ -507,7 +507,8 @@ VPosition::CrossingType VPosition::Crossing(const VLayoutPiece &detail) const //--------------------------------------------------------------------------------------------------------------------- bool VPosition::SheetContains(const QRectF &rect) const { - const QRectF bRect(0, 0, m_data.gContour.GetWidth(), m_data.gContour.GetHeight()); + const QRectF bRect(-accuracyPointOnLine, -accuracyPointOnLine, m_data.gContour.GetWidth()+accuracyPointOnLine, + m_data.gContour.GetHeight()+accuracyPointOnLine); return bRect.contains(rect); }