From 16ce815df3c782fecb56f3112169189d956a200e Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Mon, 5 Jun 2017 22:42:16 +0200 Subject: cppcheck: knownConditionTrueFalse Change-Id: I231113eaf3117e13ed18de906e3787643abe9335 Reviewed-on: https://gerrit.libreoffice.org/38423 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basegfx/source/polygon/b2dpolygontools.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basegfx') diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index e40f17c8a3cb..14276926db69 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -892,7 +892,7 @@ namespace basegfx && (aCutFlags & (CutFlagValue::START2|CutFlagValue::END2))) { // same startpoint? - if(!bFinished && (aCutFlags & (CutFlagValue::START1|CutFlagValue::START2)) == (CutFlagValue::START1|CutFlagValue::START2)) + if((aCutFlags & (CutFlagValue::START1|CutFlagValue::START2)) == (CutFlagValue::START1|CutFlagValue::START2)) { if(rEdge1Start.equal(rEdge2Start)) { @@ -946,7 +946,7 @@ namespace basegfx if(!bFinished && (aCutFlags & CutFlagValue::LINE)) { - if(!bFinished && (aCutFlags & CutFlagValue::START1)) + if((aCutFlags & CutFlagValue::START1)) { // start1 on line 2 ? if(isPointOnEdge(rEdge1Start, rEdge2Start, rEdge2Delta, &fCut2)) -- cgit