summaryrefslogtreecommitdiff
path: root/vcl/source/window/stacking.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/stacking.cxx')
-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() );