Cppcheck warning.

(grafted from e996125b7dbe0fb7b439bc80db0b561144628c18)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2020-01-06 18:33:37 +02:00
parent 84001dac61
commit 57b9868316

View File

@ -242,16 +242,8 @@ void DialogLineIntersect::PointNameChanged()
QLineF::IntersectType intersect = line1.intersect(line2, &fPoint);
if (set.size() < 3 || intersect == QLineF::NoIntersection)
{
flagError = false;
color = errorColor;
}
else
{
flagError = true;
color = OkColor(this);
}
flagError = not (set.size() < 3 || intersect == QLineF::NoIntersection);
color = flagError ? OkColor(this) : errorColor;
}
catch (const VExceptionBadId &)
{