diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-05 18:01:06 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-05 19:08:09 +0000 |
commit | a141cba76606c7dcc4965f0a25cc9a4ff2d8879e (patch) | |
tree | f6b9a765a7b257db0f7b56a9dd1d399ed259b1ba /libreofficekit/source | |
parent | 049ca7107ddb02c0b741c7aabd4c60971f418248 (diff) |
gtktiledviewer: expose undo/redo info in a repair document dialog
This shows the full undo and redo stack, with all the metadata available
via the LOK API.
Also fix SfxUndoManager::GetRedoActionsInfo(), so it's easy to show the
undo/redo stack in linear time; and fix a use-after-free in lokdocview.
Change-Id: I66625ed453efa61b5738d99d7d1ad8f468908240
Reviewed-on: https://gerrit.libreoffice.org/27913
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'libreofficekit/source')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 3201ad38ad2e..34cbd27bedd8 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -436,7 +436,7 @@ LOKPostCommand (LOKDocView* pDocView, GTask* task = g_task_new(pDocView, nullptr, nullptr, nullptr); LOEvent* pLOEvent = new LOEvent(LOK_POST_COMMAND); GError* error = nullptr; - pLOEvent->m_pCommand = pCommand; + pLOEvent->m_pCommand = g_strdup(pCommand); pLOEvent->m_pArguments = g_strdup(pArguments); pLOEvent->m_bNotifyWhenFinished = bNotifyWhenFinished; |