Fix warning "Review the data-flow - This condition might always evaluate to

"true"."

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2017-04-14 17:20:29 +03:00
parent 5c5db3d7e9
commit 495397621d
2 changed files with 4 additions and 4 deletions

View File

@ -300,9 +300,9 @@ int VEllipticalArc::GetQuadransRad(qreal &rad)
}
int n = 0;
if (rad > 0)
if (rad >= 0)
{
if (rad >= 0 && rad <= M_PI_2)
if (rad <= M_PI_2)
{
n = 1;
rad = -rad;
@ -315,7 +315,7 @@ int VEllipticalArc::GetQuadransRad(qreal &rad)
}
else
{
if (rad <= 0 && rad >= -M_PI_2)
if (rad >= -M_PI_2)
{
n = 4;
}

View File

@ -283,7 +283,7 @@ void VisToolCubicBezierPath::RefreshToolTip()
{
Visualization::toolTip = tr("<b>Curved path</b>: select seven or more points");
}
else if (size >= 7 && size - VCubicBezierPath::SubSplPointsCount(countSubSpl) == 0)
else if (size - VCubicBezierPath::SubSplPointsCount(countSubSpl) == 0)
{
Visualization::toolTip = tr("<b>Curved path</b>: select seven or more points, "
"<b>Enter</b> - finish creation");