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 907ef51e51
commit 997cc6a774
2 changed files with 3 additions and 2 deletions

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

View File

@ -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