From 997cc6a7740a100bba1ae247d29444774fa8461a Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 1 Mar 2015 16:25:19 +0100 Subject: [PATCH] Record undo properly when changing multiple paragraphs parameters Fixes bug 9437. --- src/Text2.cpp | 2 +- status.21x | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index 7893b8ed71..1c87faef5e 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -498,7 +498,7 @@ void Text::setParagraphs(Cursor & cur, docstring arg, bool merge) // with same layout in a sequence. // Do this only once for a selected range of paragraphs // of the same layout and depth. - cur.recordUndo(); + c.recordUndo(); par.params().apply(params, par.layout()); if (par.getDepth() != priordepth || par.layout() != priorlayout) setLabelWidthStringToSequence(c, params.labelWidthString()); diff --git a/status.21x b/status.21x index 75b15dd784..c74e2ce21d 100644 --- a/status.21x +++ b/status.21x @@ -94,7 +94,8 @@ What's new - Correctly inform if URW Garamond (ugm) font is not available (bug 9429). - +- Record undo properly when changing multiple paragraphs parameters + (bug 9437). * INTERNALS