sc/source/ui/view/cellsh1.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 9123db4ce8f1c20cf7b4f5a8ceaa66b6321ede14 Author: Rodolfo Ribeiro Gomes <rodolf...@gmail.com> Date: Thu Dec 20 10:18:47 2012 -0200 Group undo actions when showing/hiding several notes once, fdo#39454 This is a complement for fdo#39454 bugfix. Change-Id: I3f406ae151b92419a86abb8f050c8b032d080838 Reviewed-on: https://gerrit.libreoffice.org/1452 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Eike Rathke <er...@redhat.com> diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx index f1d3594..16e0b06 100644 --- a/sc/source/ui/view/cellsh1.cxx +++ b/sc/source/ui/view/cellsh1.cxx @@ -2061,6 +2061,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ScRangeList aRanges = *aRangesRef; size_t nRangeSize = aRanges.size(); + String aUndo = ScGlobal::GetRscString( bShowNote ? STR_UNDO_SHOWNOTE : STR_UNDO_HIDENOTE ); + pData->GetDocShell()->GetUndoManager()->EnterListAction( aUndo, aUndo ); + for ( size_t i = 0; i < nRangeSize; ++i ) { const ScRange * pRange = aRanges[i]; @@ -2107,6 +2110,8 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) } } + pData->GetDocShell()->GetUndoManager()->LeaveListAction(); + if ( bDone ) { rReq.Done(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits