diff options
Diffstat (limited to 'sw/source/uibase/shells/basesh.cxx')
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 4d29c40d8e6e..fc2bfb1d963b 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -489,15 +489,19 @@ void SwBaseShell::ExecUndo(SfxRequest &rReq) switch( nId ) { case SID_UNDO: - rWrtShell.LockPaint(); + for (SwViewShell& rShell : rWrtShell.GetRingContainer()) + rShell.LockPaint(); rWrtShell.Do( SwWrtShell::UNDO, nCnt ); - rWrtShell.UnlockPaint(); + for (SwViewShell& rShell : rWrtShell.GetRingContainer()) + rShell.UnlockPaint(); break; case SID_REDO: - rWrtShell.LockPaint(); + for (SwViewShell& rShell : rWrtShell.GetRingContainer()) + rShell.LockPaint(); rWrtShell.Do( SwWrtShell::REDO, nCnt ); - rWrtShell.UnlockPaint(); + for (SwViewShell& rShell : rWrtShell.GetRingContainer()) + rShell.UnlockPaint(); break; case SID_REPEAT: |