]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
John's spellchecker patch plus a new helper function getStringFromBrowser.
[lyx.git] / src / text2.C
index e86a6e6cf43f3685dc5580515d9f3a3f304df29d..2437cf1570a22fa39762af7389e922135b6ff5d3 100644 (file)
@@ -1684,8 +1684,8 @@ void LyXText::insertInset(BufferView * bview, Inset * inset)
 {
        if (!cursor.par()->insetAllowed(inset->lyxCode()))
                return;
-       setUndo(bview, Undo::INSERT,
-               cursor.par(), cursor.par()->next());
+       // I don't know if this is necessary here (Jug 20020102)
+       setUndo(bview, Undo::INSERT, cursor.par(), cursor.par()->next());
        cursor.par()->insertInset(cursor.pos(), inset);
        // Just to rebreak and refresh correctly.
        // The character will not be inserted a second time
@@ -2124,7 +2124,7 @@ void LyXText::setCursor(BufferView * bview, LyXCursor & cur, Paragraph * par,
        float fill_hfill;
        float fill_label_hfill;
        prepareToPrint(bview, row, x, fill_separator, fill_hfill,
-                      fill_label_hfill);
+                      fill_label_hfill);
        pos_type cursor_vpos = 0;
        pos_type last = rowLastPrintable(row);