summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-15 12:56:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-18 07:15:57 +0100
commitaa51774e6a309f277e71ca3a3b9d5d5b4b3dbf1a (patch)
treec69ad9f8591f69749699ddd7c108238820532eb3 /vcl
parent9712dd74bfb0c9b99cab37bd147fe267b48c6d7d (diff)
loplugin:simplifybool, check for !(!a op !b)
Change-Id: Ic3ee9c05705817580633506498f848aac3ab7ba6 Reviewed-on: https://gerrit.libreoffice.org/67866 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/graphic/GraphicObject2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/graphic/GraphicObject2.cxx b/vcl/source/graphic/GraphicObject2.cxx
index 7148c1098c87..7349e8b25c63 100644
--- a/vcl/source/graphic/GraphicObject2.cxx
+++ b/vcl/source/graphic/GraphicObject2.cxx
@@ -493,7 +493,7 @@ void GraphicObject::ImplTransformBitmap( BitmapEx& rBmpEx,
const Size aSizePixel( rBmpEx.GetSizePixel() );
- if( !(rAttr.GetRotation() != 0 && !IsAnimated()) )
+ if( rAttr.GetRotation() == 0 || IsAnimated() )
return;
if( !(aSizePixel.Width() && aSizePixel.Height() && rDstSize.Width() && rDstSize.Height()) )