tdf#96888 Kill internal vcl dog-tags ...
Did a small change to dndevis.cxx file. Patch No. 1 Change-Id: I9240d97a9b0dd76a2df43e01f0d1e71de9015c48 Reviewed-on: https://gerrit.libreoffice.org/21211 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
committed by
Michael Meeks
parent
8680813aa4
commit
f2f1f52d8b
@@ -413,8 +413,7 @@ sal_Int32 DNDEventDispatcher::fireDropEvent( vcl::Window *pWindow,
|
||||
Reference< XDropTarget > xDropTarget = pWindow->GetDropTarget();
|
||||
|
||||
// window may be destroyed in drop event handler
|
||||
ImplDelData aDelData;
|
||||
pWindow->ImplAddDel( &aDelData );
|
||||
VclPtr<vcl::Window> xWindow = pWindow;
|
||||
|
||||
if( xDropTarget.is() )
|
||||
{
|
||||
@@ -426,9 +425,8 @@ sal_Int32 DNDEventDispatcher::fireDropEvent( vcl::Window *pWindow,
|
||||
xContext, nDropAction, relLoc.X(), relLoc.Y(), nSourceActions, xTransferable );
|
||||
}
|
||||
|
||||
if ( !aDelData.IsDead() )
|
||||
if ( xWindow->IsDisposed() )
|
||||
{
|
||||
pWindow->ImplRemoveDel( &aDelData );
|
||||
// release UI lock
|
||||
pWindow->DecrementLockCount();
|
||||
}
|
||||
|
Reference in New Issue
Block a user