diff options
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r-- | vcl/source/window/window2.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 4c424472c06a..3f6355e65df6 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1024,12 +1024,15 @@ void Window::SetCompoundControl( bool bCompound ) void Window::IncrementLockCount() { + assert( mpWindowImpl != NULL ); mpWindowImpl->mnLockCount++; } void Window::DecrementLockCount() { - mpWindowImpl->mnLockCount--; + assert( mpWindowImpl != NULL ); + if (mpWindowImpl) + mpWindowImpl->mnLockCount--; } WinBits Window::GetStyle() const |