[Libreoffice-commits] core.git: vcl/quartz

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 11 14:03:10 UTC 2020


 vcl/quartz/salgdicommon.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 662a0fcdac5fd5b8709cc5bf2589cbe5b9dfc077
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jun 11 13:20:49 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jun 11 16:02:33 2020 +0200

    loplugin:simplifybool (macOS)
    
    Change-Id: Iae0a2966aa6394e16c2ba3d4155d90bac373472f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96118
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

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;


More information about the Libreoffice-commits mailing list