From 83073aec3a8f3390ba5376868f181366c36dfbe2 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index 4f6a975957..a9e6db6b6b 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()); -- 2.39.2