summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-18 12:16:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-18 12:16:27 +0100
commitf8ba7ff1e57bc769a4437c10b11200a6c0b122d9 (patch)
treedd3f9fca43e80d8e56c0be0903a315325e278c59 /vcl
parenta3b7bec8409c1d169a96d277e39157d3bc71d914 (diff)
cppcheck: nullPointerRedundantCheck
Change-Id: I2f8e3b4315cf63335ec4ab0c51bbf81f9c8a06f7
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/salnativewidgets.cxx2
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;