Don't allow a user to make a grainline too short.
--HG-- branch : develop
This commit is contained in:
parent
7be1d35d8f
commit
2678ab9c2c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user