Kaydet (Commit) 9123db4c authored tarafından Rodolfo Ribeiro Gomes's avatar Rodolfo Ribeiro Gomes Kaydeden (comit) Eike Rathke

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/1452Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst 357bb0d5
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment