diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-16 20:04:01 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-16 20:31:47 +0100 |
commit | 032e34d0014d2154feaf97105d2dbe69b290b8c5 (patch) | |
tree | fb655e9ea6f0146e74836af99cfaa1e01aec3ac0 /libreofficekit | |
parent | tdf#96546 - Bitmap getTexture calls can crash too - enter GL zone earlier. (diff) | |
download | core-032e34d0014d2154feaf97105d2dbe69b290b8c5.tar.gz core-032e34d0014d2154feaf97105d2dbe69b290b8c5.zip |
tdf#96250 LOK: guard against 0 pRenderingArguments
Change-Id: Ifa39777795ce966662c31c891ffc1b9b1a297b00
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 9c3b5c776cf3..85aa1be52b21 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -2453,7 +2453,8 @@ lok_doc_view_open_document (LOKDocView* pDocView, pLOEvent->m_pPath = pPath; priv->m_aDocPath = pPath; - priv->m_aRenderingArguments = pRenderingArguments; + if (pRenderingArguments) + priv->m_aRenderingArguments = pRenderingArguments; g_task_set_task_data(task, pLOEvent, LOEvent::destroy); g_thread_pool_push(priv->lokThreadPool, g_object_ref(task), &error); |