From: Jean-Marc Lasgouttes Date: Sun, 1 Mar 2015 15:25:19 +0000 (+0100) Subject: Record undo properly when changing multiple paragraphs parameters X-Git-Tag: 2.2.0alpha1~1252 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=83073aec3a8f3390ba5376868f181366c36dfbe2;p=features.git Record undo properly when changing multiple paragraphs parameters Fixes bug 9437. --- 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());