From 662a0fcdac5fd5b8709cc5bf2589cbe5b9dfc077 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 11 Jun 2020 13:20:49 +0200 Subject: loplugin:simplifybool (macOS) Change-Id: Iae0a2966aa6394e16c2ba3d4155d90bac373472f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96118 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- vcl/quartz/salgdicommon.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') 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; -- cgit