Don't show null lines. smart-pattern/valentina#32.
If both points, start and end, of a line are equal such a line is invalid. To avoid incorrect representation do not draw it.
This commit is contained in:
parent
31db32b2b1
commit
8d68cde576
|
@ -253,8 +253,12 @@ void Visualization::DrawLine(VScaledLine *lineItem, const QLineF &line, const QC
|
|||
visPen.setStyle(style);
|
||||
|
||||
lineItem->setPen(visPen);
|
||||
if (not line.isNull())
|
||||
{
|
||||
lineItem->setLine(line);
|
||||
lineItem->setVisible(true);
|
||||
}
|
||||
|
||||
lineItem->setVisible(not line.isNull());
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user