From 18d447443d160c40d42621644b557eecc42ee765 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Sat, 29 Aug 2015 23:52:06 +0100 Subject: tdf#93536 - avoid crash when calling ToTop on disposed window. Change-Id: I677f47f6b60271dc56c9d3d123cf982c00866eb9 Reviewed-on: https://gerrit.libreoffice.org/18136 Reviewed-by: Maxim Monastirsky Tested-by: Maxim Monastirsky --- vcl/source/window/stacking.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcl/source/window/stacking.cxx b/vcl/source/window/stacking.cxx index dc0f78e78d72..52d9685f343d 100644 --- a/vcl/source/window/stacking.cxx +++ b/vcl/source/window/stacking.cxx @@ -438,6 +438,8 @@ void Window::ImplHideAllOverlaps() void Window::ToTop( sal_uInt16 nFlags ) { + if (!mpWindowImpl) + return; ImplStartToTop( nFlags ); ImplFocusToTop( nFlags, IsReallyVisible() ); -- cgit v1.2.3