diff --git a/src/libs/vtools/visualization/vistoolendline.cpp b/src/libs/vtools/visualization/vistoolendline.cpp index 779bf342e..dcdde7a83 100644 --- a/src/libs/vtools/visualization/vistoolendline.cpp +++ b/src/libs/vtools/visualization/vistoolendline.cpp @@ -51,7 +51,7 @@ void VisToolEndLine::RefreshGeometry() { const QSharedPointer first = Visualization::data->GeometricObject(object1Id); QLineF line; - if (qFuzzyCompare(1 + length, 1 + 0)) + if (qFuzzyIsNull(length)) { line = QLineF(first->toQPointF(), Ray(first->toQPointF())); }