GCC warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-06-28 09:36:12 +03:00
parent 9b243f6cdc
commit 79d63f49a6
2 changed files with 4 additions and 2 deletions

View File

@ -157,7 +157,8 @@ QPointF VToolLineIntersectAxis::FindPoint(const QLineF &axis, const QLineF &line
QLineF::IntersectType intersect = axis.intersect(line, &fPoint); QLineF::IntersectType intersect = axis.intersect(line, &fPoint);
if (intersect == QLineF::UnboundedIntersection || intersect == QLineF::BoundedIntersection) if (intersect == QLineF::UnboundedIntersection || intersect == QLineF::BoundedIntersection)
{ {
if(axis.angle() == line.angle() || qAbs(axis.angle() - line.angle()) == 180) if(VFuzzyComparePossibleNulls(axis.angle(), line.angle())
|| VFuzzyComparePossibleNulls(qAbs(axis.angle() - line.angle()), 180))
{ {
return QPointF(); return QPointF();
} }

View File

@ -182,7 +182,8 @@ QPointF VToolTriangle::FindPoint(const QPointF &axisP1, const QPointF &axisP2, c
{ {
return QPointF(); return QPointF();
} }
if (axis.angle() == hypotenuse.angle() || qAbs(axis.angle() - hypotenuse.angle()) == 180) if (VFuzzyComparePossibleNulls(axis.angle(), hypotenuse.angle())
|| VFuzzyComparePossibleNulls(qAbs(axis.angle() - hypotenuse.angle()), 180))
{ {
return QPointF(); return QPointF();
} }