diff options
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; |