summaryrefslogtreecommitdiff
path: root/basegfx/source/curve
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-22 12:54:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-22 16:45:11 +0100
commit73ffc462b9b7b1e48470c17d6fbffda66be76e67 (patch)
treeb8a1917508d9af9b0a975b660fbe852281dd9f84 /basegfx/source/curve
parentd7f3eed145fa8220bb34de1f21403d80b2b3f5ae (diff)
coverity#1326120 try and silence Constant expression result
Change-Id: Iafd034dd51135ad99f56279ceee1c770f91436b0
Diffstat (limited to 'basegfx/source/curve')
-rw-r--r--basegfx/source/curve/b2dcubicbezier.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/curve/b2dcubicbezier.cxx b/basegfx/source/curve/b2dcubicbezier.cxx
index bbafb7bbfa0d..ee87cbe7256b 100644
--- a/basegfx/source/curve/b2dcubicbezier.cxx
+++ b/basegfx/source/curve/b2dcubicbezier.cxx
@@ -446,7 +446,7 @@ namespace basegfx
: aVecA.getY() / aEdge.getY());
// relative end point of vector in edge range?
- if(fTools::moreOrEqual(fScale, 0.0) && fTools::lessOrEqual(fScale, 1.0))
+ if (fTools::betweenOrEqualEither(fScale, 0.0, 1.0))
{
bAIsTrivial = true;
}
@@ -468,7 +468,7 @@ namespace basegfx
: aVecB.getY() / aEdge.getY());
// end point of vector in edge range? Caution: controlB is directed AGAINST edge
- if(fTools::lessOrEqual(fScale, 0.0) && fTools::moreOrEqual(fScale, -1.0))
+ if (fTools::betweenOrEqualEither(fScale, -1.0, 0.0))
{
bBIsTrivial = true;
}