GCC warnings.
--HG-- branch : develop
This commit is contained in:
parent
9b243f6cdc
commit
79d63f49a6
|
@ -157,7 +157,8 @@ QPointF VToolLineIntersectAxis::FindPoint(const QLineF &axis, const QLineF &line
|
|||
QLineF::IntersectType intersect = axis.intersect(line, &fPoint);
|
||||
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();
|
||||
}
|
||||
|
|
|
@ -182,7 +182,8 @@ QPointF VToolTriangle::FindPoint(const QPointF &axisP1, const QPointF &axisP2, c
|
|||
{
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user