summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-08-09 18:13:37 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-08-09 16:44:27 +0000
commit5d8639aaf2f60157c99c3ee3a8bfa78e4efd010a (patch)
treefc3e431ce0398bff382ff792a97e0588a8ca31b0 /sw/source/uibase/wrtsh
parente328cab3c987a057411264209d1393440504a2cd (diff)
sw lok: limit undo/redo access to undo actions created by the same view
So one view can't undo the changes of an other view by accident. If this is found to be useful in the desktop case, perhaps a dedicated config option can be added for it; for now the behavior is LOK-only. Change-Id: I7ff505d021bd6f6be36953ecc8f8bb971ce8927e Reviewed-on: https://gerrit.libreoffice.org/28007 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/wrtundo.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/wrtsh/wrtundo.cxx b/sw/source/uibase/wrtsh/wrtundo.cxx
index ea1c37e32783..1260d8902b15 100644
--- a/sw/source/uibase/wrtsh/wrtundo.cxx
+++ b/sw/source/uibase/wrtsh/wrtundo.cxx
@@ -102,11 +102,11 @@ OUString SwWrtShell::GetDoString( DoType eDoType ) const
{
case UNDO:
nResStr = STR_UNDO;
- (void)GetLastUndoInfo(&aUndoStr, nullptr);
+ (void)GetLastUndoInfo(&aUndoStr, nullptr, &m_rView);
break;
case REDO:
nResStr = STR_REDO;
- (void)GetFirstRedoInfo(&aUndoStr);
+ (void)GetFirstRedoInfo(&aUndoStr, &m_rView);
break;
default:;//prevent warning
}