summaryrefslogtreecommitdiff
path: root/libreofficekit/source/gtk
diff options
context:
space:
mode:
authorAshod Nakashian <ashodnakashian@yahoo.com>2015-12-05 22:11:33 -0500
committerDavid Tardon <dtardon@redhat.com>2015-12-10 14:43:49 +0000
commitdeb9203741dcea5dd3f2260f90203c07fb79e9de (patch)
tree67deae62e51cd88997a1f1783dd2e07fcfb58bbc /libreofficekit/source/gtk
parent8410527550ef6db8348e8590eb0c52bccbe40310 (diff)
Crash fix in gtktiledviewer when creating new view
Change-Id: I85bb71e775f300214e05e75636bbee200d35ffaa Reviewed-on: https://gerrit.libreoffice.org/20418 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'libreofficekit/source/gtk')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index e0654b1447ae..59033204b0bb 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2399,6 +2399,7 @@ SAL_DLLPUBLIC_EXPORT GtkWidget* lok_doc_view_new_from_widget(LOKDocView* pOldLOK
LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(LOK_DOC_VIEW(pNewDocView));
LOKDocViewPrivate& pNewPriv = getPrivate(LOK_DOC_VIEW(pNewDocView));
pNewPriv->m_nViewId = pDocument->pClass->createView(pDocument);
+ pNewPriv->m_aRenderingArguments = pOldPriv->m_aRenderingArguments;
postDocumentLoad(pNewDocView);
return pNewDocView;