Extend layout sheet paper size to cover coner cases.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-15 15:33:30 +02:00
parent 5ed2134a29
commit 762ee18026

View File

@ -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);
}