diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-11 13:20:49 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-11 16:02:33 +0200 |
commit | 662a0fcdac5fd5b8709cc5bf2589cbe5b9dfc077 (patch) | |
tree | 31413f7b01aecbc8ba664e5624382ba8fabef6b5 /vcl | |
parent | b5cb211f80fd87c109633232cf340ac7969c8648 (diff) |
loplugin:simplifybool (macOS)
Change-Id: Iae0a2966aa6394e16c2ba3d4155d90bac373472f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96118
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index 3126400709f2..5acc4d4e4e77 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -924,7 +924,7 @@ bool AquaSalGraphics::drawPolyLine( const CGRect aRefreshRect = CGPathGetBoundingBox( xPath ); // #i97317# workaround for Quartz having problems with drawing small polygons - if( ! ((aRefreshRect.size.width <= 0.125) && (aRefreshRect.size.height <= 0.125)) ) + if( (aRefreshRect.size.width > 0.125) || (aRefreshRect.size.height > 0.125) ) { // use the path to prepare the graphics context maContextHolder.saveState(); @@ -987,7 +987,7 @@ bool AquaSalGraphics::drawPolyPolygon( const CGRect aRefreshRect = CGPathGetBoundingBox( xPath ); // #i97317# workaround for Quartz having problems with drawing small polygons - if( ! ((aRefreshRect.size.width <= 0.125) && (aRefreshRect.size.height <= 0.125)) ) + if( (aRefreshRect.size.width > 0.125) || (aRefreshRect.size.height > 0.125) ) { // prepare drawing mode CGPathDrawingMode eMode; |