Record undo properly when changing multiple paragraphs parameters

Fixes bug 9437.
This commit is contained in:
Jean-Marc Lasgouttes 2015-03-01 16:25:19 +01:00
parent 536cd8ecd8
commit 83073aec3a

View File

@ -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());