Refactoring. Use qFuzzyIsNull.
--HG-- branch : feature
This commit is contained in:
parent
0f747ede7e
commit
6dd26ddd73
|
@ -51,7 +51,7 @@ void VisToolEndLine::RefreshGeometry()
|
|||
{
|
||||
const QSharedPointer<VPointF> first = Visualization::data->GeometricObject<VPointF>(object1Id);
|
||||
QLineF line;
|
||||
if (qFuzzyCompare(1 + length, 1 + 0))
|
||||
if (qFuzzyIsNull(length))
|
||||
{
|
||||
line = QLineF(first->toQPointF(), Ray(first->toQPointF()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user