diff options
author | Michael Stahl <mst@openoffice.org> | 2011-01-20 19:19:11 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-01-20 19:19:11 +0100 |
commit | 8bc2019cab507472a0412f47cea6e740ec697818 (patch) | |
tree | d9be3cb1b4cc1235e38d9aea82f78de426b62cfd /sw/source/ui/misc | |
parent | d9e7a76273396527d29503a66ed514e2a0199ceb (diff) |
undoapi: fix regression: undo comments with un-rewritten arguments:
various EndUndo() calls undo SwRewriter applications done at StartUndo().
EndUndo() should only be called with a real ID if a comment should
be generated from the ID that should become the list action comment.
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r-- | sw/source/ui/misc/redlndlg.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx index fd6c37fa5e2d..19decf172798 100644 --- a/sw/source/ui/misc/redlndlg.cxx +++ b/sw/source/ui/misc/redlndlg.cxx @@ -960,7 +960,9 @@ void SwRedlineAcceptDlg::CallAcceptReject( BOOL bSelect, BOOL bAccept ) // #111827# if (aRedlines.size() > 1) - pSh->EndUndo(bAccept? UNDO_ACCEPT_REDLINE : UNDO_REJECT_REDLINE); + { + pSh->EndUndo(); + } pSh->EndAction(); |