diff options
author | Ras-al-Ghul <dipankar1995@gmail.com> | 2016-01-07 23:03:28 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-01-08 09:55:08 +0000 |
commit | accc12efd1db250b7e3c22b6bd70a1e4393bae6b (patch) | |
tree | 21e04727f8e724c163f7f7097b855d0b42008ea8 /vcl | |
parent | 6ac256da90d23d0b5483197543a1159fed827a41 (diff) |
tdf#96888 Kill internal vcl dog-tags ...
Did a small change to static bool ImplCallCommand( vcl::Window* pChild, ...) in winproc.cxx file. Patch No. 7
Change-Id: Ib2929ff2fe98487461f2d8ec768fab8d4cd45c22
Reviewed-on: https://gerrit.libreoffice.org/21221
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/winproc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index ef4cb769e18e..a7dca9a0e57c 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -216,19 +216,19 @@ static bool ImplCallCommand( vcl::Window* pChild, CommandEventId nEvt, void* pDa CommandEvent aCEvt( aPos, nEvt, bMouse, pData ); NotifyEvent aNCmdEvt( MouseNotifyEvent::COMMAND, pChild, &aCEvt ); - ImplDelData aDelData( pChild ); + VclPtr<vcl::Window> xWindow = pChild; bool bPreNotify = ImplCallPreNotify( aNCmdEvt ); - if ( aDelData.IsDead() ) + if ( xWindow->IsDisposed() ) return false; if ( !bPreNotify ) { pChild->ImplGetWindowImpl()->mbCommand = false; pChild->Command( aCEvt ); - if( aDelData.IsDead() ) + if( xWindow->IsDisposed() ) return false; pChild->ImplNotifyKeyMouseCommandEventListeners( aNCmdEvt ); - if ( aDelData.IsDead() ) + if ( xWindow->IsDisposed() ) return false; if ( pChild->ImplGetWindowImpl()->mbCommand ) return true; |