Don't allow a user to make a grainline too short.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-08-01 19:22:43 +03:00
parent 7be1d35d8f
commit 2678ab9c2c

View File

@ -384,6 +384,12 @@ void VGrainlineItem::mouseMoveEvent(QGraphicsSceneMouseEvent* pME)
{
dLen *= 2;
}
if (m_dStartLength + dLen < ToPixel(5, Unit::Mm))
{
return;
}
m_dLength = m_dStartLength + dLen;
QPointF pos;