]> git.lyx.org Git - features.git/commitdiff
Record undo properly when changing multiple paragraphs parameters
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 1 Mar 2015 15:25:19 +0000 (16:25 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 1 Mar 2015 15:25:19 +0000 (16:25 +0100)
Fixes bug 9437.

src/Text2.cpp

index 4f6a975957e1e54a809a3269bfae49b76b008419..a9e6db6b6b3ba7caf4830710b1e3828cb0a8111a 100644 (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());