diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-18 12:16:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-18 12:16:27 +0100 |
commit | f8ba7ff1e57bc769a4437c10b11200a6c0b122d9 (patch) | |
tree | dd3f9fca43e80d8e56c0be0903a315325e278c59 /vcl | |
parent | a3b7bec8409c1d169a96d277e39157d3bc71d914 (diff) |
cppcheck: nullPointerRedundantCheck
Change-Id: I2f8e3b4315cf63335ec4ab0c51bbf81f9c8a06f7
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salnativewidgets.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index b05860d914c3..8189d37c0809 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; |