From a779d979b9dd87589f00cfcb245f70c6b26d8c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 3 Jun 2016 21:08:45 +0100 Subject: [PATCH] accidentially reverted fix for tdf#96745 Change-Id: I52380248002f6c41f0c6f154f913b05ef32b93d3 --- vcl/source/window/brdwin.cxx | 6 +++--- 1 file 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(pWin); - DockingWindow *pDockWin = dynamic_cast(pWin); + VclPtr pWin = pBorderWindow->ImplGetClientWindow()->ImplGetWindow(); + SystemWindow *pSysWin = dynamic_cast(pWin.get()); + DockingWindow *pDockWin = dynamic_cast(pWin.get()); if ( pSysWin ) pSysWin->Close(); else if ( pDockWin )