Fix warning "Review the data-flow - This condition might always evaluate to
"true"." --HG-- branch : release
This commit is contained in:
parent
5c5db3d7e9
commit
495397621d
|
@ -300,9 +300,9 @@ int VEllipticalArc::GetQuadransRad(qreal &rad)
|
||||||
}
|
}
|
||||||
|
|
||||||
int n = 0;
|
int n = 0;
|
||||||
if (rad > 0)
|
if (rad >= 0)
|
||||||
{
|
{
|
||||||
if (rad >= 0 && rad <= M_PI_2)
|
if (rad <= M_PI_2)
|
||||||
{
|
{
|
||||||
n = 1;
|
n = 1;
|
||||||
rad = -rad;
|
rad = -rad;
|
||||||
|
@ -315,7 +315,7 @@ int VEllipticalArc::GetQuadransRad(qreal &rad)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (rad <= 0 && rad >= -M_PI_2)
|
if (rad >= -M_PI_2)
|
||||||
{
|
{
|
||||||
n = 4;
|
n = 4;
|
||||||
}
|
}
|
||||||
|
|
|
@ -283,7 +283,7 @@ void VisToolCubicBezierPath::RefreshToolTip()
|
||||||
{
|
{
|
||||||
Visualization::toolTip = tr("<b>Curved path</b>: select seven or more points");
|
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, "
|
Visualization::toolTip = tr("<b>Curved path</b>: select seven or more points, "
|
||||||
"<b>Enter</b> - finish creation");
|
"<b>Enter</b> - finish creation");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user