diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-06-14 12:17:55 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-06-14 12:17:55 +0200 |
commit | b226928c6d5d094359b970b64a063b243d4fc84c (patch) | |
tree | 3ec0329c0f69fc4e9b57210135d51c2006853388 /svx/source/svdraw/gradtrns.cxx | |
parent | 01a189abcd9a4ca472a74b3b2c000c9338fc2c91 (diff) |
cppcheck: redundantCondition [part1]
Change-Id: I21c5340e7b5ec09248b08aa76f43acf883c56cd8
Diffstat (limited to 'svx/source/svdraw/gradtrns.cxx')
-rw-r--r-- | svx/source/svdraw/gradtrns.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/gradtrns.cxx b/svx/source/svdraw/gradtrns.cxx index 72981d02ae96..552ccb1f9145 100644 --- a/svx/source/svdraw/gradtrns.cxx +++ b/svx/source/svdraw/gradtrns.cxx @@ -209,7 +209,7 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad { case css::awt::GradientStyle_LINEAR : { - if(!bMoveSingle || (bMoveSingle && !bMoveFirst)) + if(!bMoveSingle || !bMoveFirst) { basegfx::B2DVector aFullVec(aEndPos - aStartPos); @@ -245,7 +245,7 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad } } - if(!bMoveSingle || (bMoveSingle && bMoveFirst)) + if(!bMoveSingle || bMoveFirst) { const basegfx::B2DVector aFullVec(aEndPos - aStartPos); const basegfx::B2DPoint aBottomLeft(aRange.getMinX(), aRange.getMaximum().getY()); @@ -278,7 +278,7 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad } case css::awt::GradientStyle_AXIAL : { - if(!bMoveSingle || (bMoveSingle && !bMoveFirst)) + if(!bMoveSingle || !bMoveFirst) { basegfx::B2DVector aFullVec(aEndPos - aCenter); const basegfx::B2DVector aOldVec(basegfx::B2DPoint(aCenter.getX(), aRange.getMaximum().getY()) - aCenter); |