]> git.lyx.org Git - features.git/blobdiff - src/Text.cpp
Fix bug #8242: undo fails for longest label width
[features.git] / src / Text.cpp
index aa23b71261e254f56bf1d04b216db613aae369f9..baa9c3f1f82d6e6f055941b2c7315cb525fe753d 100644 (file)
@@ -724,8 +724,7 @@ void Text::breakParagraph(Cursor & cur, bool inverse_logic)
                return;
        }
 
-       // a layout change may affect also the following paragraph
-       recUndo(cur, cur.pit(), undoSpan(cur.pit()) - 1);
+       cur.recordUndo();
 
        // Always break behind a space
        // It is better to erase the space (Dekel)