summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-08-25 20:49:04 -0400
committerAshod Nakashian <ashnakash@gmail.com>2017-08-28 06:02:48 +0200
commitc8777a18792a292bcbcb536e72b25b390b49000e (patch)
tree842b9660debc5f14aef788ab7288d2cb2298c332
parentsw: insert paragraph signature field (diff)
downloadcore-c8777a18792a292bcbcb536e72b25b390b49000e.tar.gz
core-c8777a18792a292bcbcb536e72b25b390b49000e.zip
sw: don't undo paragraph signatures
Change-Id: I188ab9dfebd5abd24f4e404bda13d40be022b7c4 Reviewed-on: https://gerrit.libreoffice.org/41596 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r--sw/source/uibase/shells/textsh1.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index 4142142f1fc4..18d80a3961f6 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1104,14 +1104,17 @@ void SwTextShell::Execute(SfxRequest &rReq)
if (!pPaM)
pPaM = rWrtSh.GetCursor();
- rWrtSh.StartUndo(SwUndoId::PARA_SIGN_ADD);
- rWrtSh.StartAction();
+ // rWrtSh.StartUndo(SwUndoId::PARA_SIGN_ADD);
+ // rWrtSh.StartAction();
+ // const bool isUndoEnabled = GetDoc()->GetIDocumentUndoRedo().DoesUndo();
+ // GetDoc()->GetIDocumentUndoRedo().DoUndo(false);
rWrtSh.SignParagraph(pPaM);
- rWrtSh.EndAction();
+ // GetDoc()->GetIDocumentUndoRedo().DoUndo(isUndoEnabled);
- rWrtSh.EndUndo(SwUndoId::PARA_SIGN_ADD);
+ // rWrtSh.EndAction();
+ // rWrtSh.EndUndo(SwUndoId::PARA_SIGN_ADD);
}
break;
case FN_NUM_CONTINUE: