diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-18 10:07:51 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-18 11:37:59 +0200 |
commit | f2afe318ce800c1b301f7e1aef769194aa676b12 (patch) | |
tree | 19e28a856cc90716f7e242f18fa9977862701260 /libreofficekit/source/gtk/lokdocview.cxx | |
parent | cb9362faad9fe702031c5e657a31b1963ad4d374 (diff) |
gtktiledviewer: specify author name when calling initializeForRendering()
Open two views, and type into both of them when a Writer doc with
redlining enabled is open: the manage changes dialog now shows how the
correct author is used when creating the redline items.
Change-Id: I48fb90301bfcc04b06d5be5544324ca76fe7b3d7
Diffstat (limited to 'libreofficekit/source/gtk/lokdocview.cxx')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 34cbd27bedd8..b4e53e1d940c 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -3016,7 +3016,8 @@ lok_doc_view_new_from_user_profile (const gchar* pPath, const gchar* pUserProfil nullptr)); } -SAL_DLLPUBLIC_EXPORT GtkWidget* lok_doc_view_new_from_widget(LOKDocView* pOldLOKDocView) +SAL_DLLPUBLIC_EXPORT GtkWidget* lok_doc_view_new_from_widget(LOKDocView* pOldLOKDocView, + const gchar* pRenderingArguments) { LOKDocViewPrivate& pOldPriv = getPrivate(pOldLOKDocView); GtkWidget* pNewDocView = GTK_WIDGET(g_initable_new(LOK_TYPE_DOC_VIEW, /*cancellable=*/nullptr, /*error=*/nullptr, @@ -3034,7 +3035,7 @@ SAL_DLLPUBLIC_EXPORT GtkWidget* lok_doc_view_new_from_widget(LOKDocView* pOldLOK // Store the view id only later in postDocumentLoad(), as // initializeForRendering() changes the id in Impress. pDocument->pClass->createView(pDocument); - pNewPriv->m_aRenderingArguments = pOldPriv->m_aRenderingArguments; + pNewPriv->m_aRenderingArguments = pRenderingArguments; postDocumentLoad(pNewDocView); return pNewDocView; |