Cppcheck warning.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2020-01-06 18:33:37 +02:00
parent ab25647334
commit 8ab0ebeb12

View File

@ -229,17 +229,8 @@ void DialogLineIntersect::PointNameChanged()
QPointF fPoint; QPointF fPoint;
QLineF::IntersectType intersect = line1.intersect(line2, &fPoint); QLineF::IntersectType intersect = line1.intersect(line2, &fPoint);
QColor color = okColor; flagError = not (set.size() < 3 || intersect == QLineF::NoIntersection);
if (set.size() < 3 || intersect == QLineF::NoIntersection) QColor color = flagError ? okColor : errorColor;
{
flagError = false;
color = errorColor;
}
else
{
flagError = true;
color = okColor;
}
ChangeColor(ui->labelP1Line1, color); ChangeColor(ui->labelP1Line1, color);
ChangeColor(ui->labelP2Line1, color); ChangeColor(ui->labelP2Line1, color);
ChangeColor(ui->labelP1Line2, color); ChangeColor(ui->labelP1Line2, color);