diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/dndeventdispatcher.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/window2.cxx | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/window/dndeventdispatcher.cxx b/vcl/source/window/dndeventdispatcher.cxx index 9ca0a920065a..1fcf74d60db2 100644 --- a/vcl/source/window/dndeventdispatcher.cxx +++ b/vcl/source/window/dndeventdispatcher.cxx @@ -397,7 +397,7 @@ sal_Int32 DNDEventDispatcher::fireDropEvent( vcl::Window *pWindow, xContext, nDropAction, relLoc.X(), relLoc.Y(), nSourceActions, xTransferable ); } - if ( xWindow->IsDisposed() ) + if ( !xWindow->IsDisposed() ) { // release UI lock pWindow->DecrementLockCount(); 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 |