commit 83073aec3a8f3390ba5376868f181366c36dfbe2 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Mar 1 16:25:19 2015 +0100
Record undo properly when changing multiple paragraphs parameters Fixes bug 9437. diff --git a/src/Text2.cpp b/src/Text2.cpp index 4f6a975..a9e6db6 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());