diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-08-29 23:52:06 +0100 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-08-30 10:38:39 +0000 |
commit | 18d447443d160c40d42621644b557eecc42ee765 (patch) | |
tree | aa7675c7a124a99c801186e87177c2e5d89da41d /vcl/source/window/stacking.cxx | |
parent | d90d86b43661f758b38a16f8e6b07e9d49dc8472 (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>
Diffstat (limited to 'vcl/source/window/stacking.cxx')
-rw-r--r-- | vcl/source/window/stacking.cxx | 2 |
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() ); |