Cppcheck warning.
(grafted from e996125b7dbe0fb7b439bc80db0b561144628c18) --HG-- branch : develop
This commit is contained in:
parent
84001dac61
commit
57b9868316
|
@ -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 &)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user