diff options
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index fc7c5daf8ce4..ed6dd8883b57 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -561,10 +561,10 @@ void SwBaseShell::ExecUndo(SfxRequest &rReq) { sw::UndoManager& rManager = rWrtShell.GetDoc()->GetUndoManager(); const SfxUndoAction* pAction = rManager.GetUndoAction(); - SwView& rView = rWrtShell.GetView(); - ViewShellId nViewShellId = rView.GetViewShellId(); + SwView& rSwView = rWrtShell.GetView(); + ViewShellId nViewShellId = rSwView.GetViewShellId(); if (pAction->GetViewShellId() != nViewShellId - && rManager.IsViewUndoActionIndependent(&rView)) + && rManager.IsViewUndoActionIndependent(&rSwView)) { // Execute the undo with an offset: don't undo the top action, but an // earlier one, since it's independent and that belongs to our view. |