Cppcheck warning.
--HG-- branch : release
This commit is contained in:
parent
ab25647334
commit
8ab0ebeb12
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user