diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-19 09:07:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-30 10:49:51 +0200 |
commit | d6c32cffb5cc81989b4bb4a221a152bbe607bd98 (patch) | |
tree | 2c4ef9ec2a201ffcfea145ed5a0b901f2b6853ea /svx/source/engine3d | |
parent | 9ab64dc48a6a61edce6ff3724093162ca1cf8331 (diff) |
loplugin:simplifybool extend to expression like !(a < b || c > d)
mostly to catch stuff from the flatten work, but I think this looks good
in general
Change-Id: I7be5b7bcf1f3d9f980c748ba20793965cef957e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92493
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r-- | svx/source/engine3d/polygn3d.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/engine3d/polygn3d.cxx b/svx/source/engine3d/polygn3d.cxx index d8c1b5d0c212..c33d9f096d23 100644 --- a/svx/source/engine3d/polygn3d.cxx +++ b/svx/source/engine3d/polygn3d.cxx @@ -107,7 +107,7 @@ void E3dPolygonObj::CreateDefaultTexture() sal_uInt16 nSourceMode = 0; // Determine the greatest degree of freedom - if(!(aNormal.getX() > aNormal.getY() && aNormal.getX() > aNormal.getZ())) + if(aNormal.getX() <= aNormal.getY() || aNormal.getX() <= aNormal.getZ()) { if(aNormal.getY() > aNormal.getZ()) { |