From 66fd9a610cd876c236486a2089d8d58dca866e25 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 6 Jan 2012 18:57:39 +0100 Subject: [PATCH] Fix "Same expression on both sides of '&&'" (reported by cppcheck) --- basegfx/source/polygon/b2dpolypolygoncutter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx index d32ee87acd38..874524110f89 100644 --- a/basegfx/source/polygon/b2dpolypolygoncutter.cxx +++ b/basegfx/source/polygon/b2dpolypolygoncutter.cxx @@ -282,7 +282,7 @@ namespace basegfx bOnEdge = false; } } - while(bOnEdge && pPNa2 != &rPNa && pPNa2 != &rPNa); + while(bOnEdge && pPNa2 != &rPNa && pPNb2 != &rPNb); if(bOnEdge) { @@ -408,7 +408,7 @@ namespace basegfx bOnEdge = false; } } - while(bOnEdge && pPNa2 != &rPNa && pPNa2 != &rPNa); + while(bOnEdge && pPNa2 != &rPNa && pPNb2 != &rPNb); if(bOnEdge) {