]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / paragraph_funcs.C
index 7acc817580ded69a589c2cd2adc0185af8ae69fb..a43217cc055591222a2b62d954aecafec8812a6d 100644 (file)
@@ -83,8 +83,6 @@ bool moveItem(Paragraph & from, Paragraph & to,
                if (tmpinset)
                        to.insertInset(j, tmpinset, tmpfont, change);
        } else {
-               if (!to.checkInsertChar(tmpfont))
-                       return false;
                to.insertChar(j, tmpchar, tmpfont, change);
        }
        return true;
@@ -168,10 +166,11 @@ void breakParagraph(BufferParams const & bparams,
                return;
        }
 
-       par.params().clear();
-
-       par.layout(bparams.getLyXTextClass().defaultLayout());
-
+        if (!isempty) {
+                par.params().clear();
+                par.layout(bparams.getLyXTextClass().defaultLayout());
+        }
+        
        // layout stays the same with latex-environments
        if (flag) {
                par.layout(tmp->layout());