summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-08-29 23:52:06 +0100
committerMaxim Monastirsky <momonasmon@gmail.com>2015-08-30 10:38:39 +0000
commit18d447443d160c40d42621644b557eecc42ee765 (patch)
treeaa7675c7a124a99c801186e87177c2e5d89da41d
parentd90d86b43661f758b38a16f8e6b07e9d49dc8472 (diff)
tdf#93536 - avoid crash when calling ToTop on disposed window.
Change-Id: I677f47f6b60271dc56c9d3d123cf982c00866eb9 Reviewed-on: https://gerrit.libreoffice.org/18136 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
-rw-r--r--vcl/source/window/stacking.cxx2
1 files changed, 2 insertions, 0 deletions
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() );