Kaydet (Commit) f8d73813 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

vcl: Do nothing when we don't have mpWindowImpl.

Avoids a crash in Impress search.

Change-Id: I07106e0185a1fe4cfa09a6783396c0d48b028f10
üst 06c57058
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment