summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-05-28 16:39:48 +0200
committerJan Holesovsky <kendy@collabora.com>2015-05-28 20:09:59 +0200
commitf8d738134d1cbbee775d68b33755239d750b5825 (patch)
tree59f5469e15604fb382a66b765fe25322ddb8cd04 /vcl
parent06c57058178fa28c79d002cf2794ebd4ec2a2db4 (diff)
vcl: Do nothing when we don't have mpWindowImpl.
Avoids a crash in Impress search. Change-Id: I07106e0185a1fe4cfa09a6783396c0d48b028f10
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window2.cxx4
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;