]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.C
Remove the XOpenIM test as lyxlookup.C has been buried.
[lyx.git] / src / paragraph_funcs.C
index a27ef901ac4161bceab02c9e538c9891ec5731cf..249e43088e4308c7ec7dda59bc468888d22e3767 100644 (file)
@@ -62,6 +62,14 @@ void breakParagraph(BufferParams const & bparams,
 
                // copy everything behind the break-position
                // to the new paragraph
+
+#ifdef WITH_WARNINGS
+#warning this seems wrong
+#endif
+               /* FIXME: if !keepempty, empty() == true, then we reach
+                * here with size() == 0. So pos_end becomes - 1. Why
+                * doesn't this cause problems ???
+                */
                pos_type pos_end = par->size() - 1;
                pos_type i = pos;
                pos_type j = pos;
@@ -77,7 +85,7 @@ void breakParagraph(BufferParams const & bparams,
 
        if (pos)
                return;
+
        tmp->params().lineTop(par->params().lineTop());
        tmp->params().pagebreakTop(par->params().pagebreakTop());
        tmp->params().spaceTop(par->params().spaceTop());