diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/window2.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 1e70a62027bc..b8d822f9ad8e 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1723,6 +1723,8 @@ bool Window::set_property(const OString &rKey, const OString &rValue) void Window::set_height_request(sal_Int32 nHeightRequest) { + if (!mpWindowImpl) + return; WindowImpl *pWindowImpl = mpWindowImpl->mpBorderWindow ? mpWindowImpl->mpBorderWindow->mpWindowImpl : mpWindowImpl; @@ -1735,6 +1737,8 @@ void Window::set_height_request(sal_Int32 nHeightRequest) void Window::set_width_request(sal_Int32 nWidthRequest) { + if (!mpWindowImpl) + return; WindowImpl *pWindowImpl = mpWindowImpl->mpBorderWindow ? mpWindowImpl->mpBorderWindow->mpWindowImpl : mpWindowImpl; |