Refactoring. Use qFuzzyIsNull.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-02-12 20:31:08 +02:00
parent 0f747ede7e
commit 6dd26ddd73

View File

@ -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()));
}