diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-06 13:20:56 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-06 15:47:55 +0400 |
commit | 5122e3413b06125ff45fd10e1ac1f0e58c24afcc (patch) | |
tree | 1bb7587279c702c3479ceb746c6ef449726a4948 /vcl | |
parent | 0cf754f5ca356c2d93f7ebf8523b2dc2246e4763 (diff) |
cppcheck: avoid possible null pointer dereferences
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/decoview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index ba41187f0241..ab617418ea81 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -786,7 +786,7 @@ static void ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect, if ( nStyle & FRAME_DRAW_NODRAW ) { sal_uInt16 nValueStyle = bMenuStyle ? nStyle | FRAME_DRAW_MENU : nStyle; - if( pWin->GetType() == WINDOW_BORDERWINDOW ) + if( pWin && pWin->GetType() == WINDOW_BORDERWINDOW ) nValueStyle |= FRAME_DRAW_BORDERWINDOWBORDER; ImplControlValue aControlValue( nValueStyle ); Rectangle aBound, aContent; |