diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-03 21:08:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-03 21:09:23 +0100 |
commit | a779d979b9dd87589f00cfcb245f70c6b26d8c2c (patch) | |
tree | 599515650d4b6fb882c784b26b236ab74b1e2d62 /vcl/source | |
parent | f2d18f8a7125f4f4d1d72be11fb3fb6637f25fde (diff) |
accidentially reverted fix for tdf#96745
Change-Id: I52380248002f6c41f0c6f154f913b05ef32b93d3
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/brdwin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx index dd8a8aebc215..28583f53275c 100644 --- a/vcl/source/window/brdwin.cxx +++ b/vcl/source/window/brdwin.cxx @@ -957,9 +957,9 @@ bool ImplStdBorderWindowView::Tracking( const TrackingEvent& rTEvt ) { // dispatch to correct window type (why is Close() not virtual ??? ) // TODO: make Close() virtual - vcl::Window *pWin = pBorderWindow->ImplGetClientWindow()->ImplGetWindow(); - SystemWindow *pSysWin = dynamic_cast<SystemWindow* >(pWin); - DockingWindow *pDockWin = dynamic_cast<DockingWindow*>(pWin); + VclPtr<vcl::Window> pWin = pBorderWindow->ImplGetClientWindow()->ImplGetWindow(); + SystemWindow *pSysWin = dynamic_cast<SystemWindow* >(pWin.get()); + DockingWindow *pDockWin = dynamic_cast<DockingWindow*>(pWin.get()); if ( pSysWin ) pSysWin->Close(); else if ( pDockWin ) |