summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2021-07-23 11:46:57 +0300
committerThorsten Behrens <thorsten.behrens@allotropia.de>2021-07-26 15:19:15 +0200
commit1da91cd552d29923ab7ea8027119ff5f62103d57 (patch)
tree179d4d50a6a782e7dc9b170f69f52208cd340e60
parent965636121cb1fb09739fcbca2c85f0a07bf6bf96 (diff)
sw: undo/redo: change undo id for numbering
Instead of "Reset attributes" new undo id is "Apply attributes". Seems less confusing when modified numbering rule is appled. Change-Id: I0bad38475363d6e0af01597271720d71aca7722c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119401 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
-rw-r--r--sw/source/core/edit/ednumber.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx
index cd4458c276dd..994efbf37ec4 100644
--- a/sw/source/core/edit/ednumber.cxx
+++ b/sw/source/core/edit/ednumber.cxx
@@ -775,7 +775,7 @@ void SwEditShell::SetCurNumRule( const SwNumRule& rRule,
{
StartAllAction();
- GetDoc()->GetIDocumentUndoRedo().StartUndo( SwUndoId::START, nullptr );
+ GetDoc()->GetIDocumentUndoRedo().StartUndo( SwUndoId::INSATTR, nullptr );
SwPaM* pCursor = GetCursor();
if( IsMultiSelection() )
@@ -808,7 +808,7 @@ void SwEditShell::SetCurNumRule( const SwNumRule& rRule,
true, bResetIndentAttrs );
GetDoc()->SetCounted( *pCursor, true, GetLayout() );
}
- GetDoc()->GetIDocumentUndoRedo().EndUndo( SwUndoId::END, nullptr );
+ GetDoc()->GetIDocumentUndoRedo().EndUndo( SwUndoId::INSATTR, nullptr );
EndAllAction();
}