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

Caolán McNamara caolanm at redhat.com
Thu Aug 18 11:17:56 UTC 2016


 vcl/osx/salnativewidgets.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f8ba7ff1e57bc769a4437c10b11200a6c0b122d9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Aug 18 12:16:27 2016 +0100

    cppcheck: nullPointerRedundantCheck
    
    Change-Id: I2f8e3b4315cf63335ec4ab0c51bbf81f9c8a06f7

diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index b05860d..8189d37 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -539,7 +539,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
                 aPushInfo.kind = kThemePushButtonMini;
                 nPaintHeight = PB_Mini_Height;
             }
-            else if( pPBVal->mbSingleLine || rc.size.height < (PB_Norm_Height + PB_Norm_Height/2) )
+            else if( (pPBVal && pPBVal->mbSingleLine) || rc.size.height < (PB_Norm_Height + PB_Norm_Height/2) )
             {
                 aPushInfo.kind = kThemePushButtonNormal;
                 nPaintHeight = PB_Norm_Height;


More information about the Libreoffice-commits mailing list