On 18/12/2010 18:57, Jean-Marc Lasgouttes wrote:
Le 18 déc. 2010 à 17:41, Abdelrazak Younes a écrit :
What part of that could possibly go to branch?
I guess introducing RandomListAccess::position() and using it will be enough.
Why does this remove the quadratic behaviour?

distance(it1, it2) = paragraphs.position(it2) - paragraphs.position(it1);

But as I said before, maybe the fix is as simple as this:

--- C:/Users/abdel/AppData/Local/Temp/output_lat-revBASE.svn006.tmp.cpp sam. déc. 18 19:07:23 2010
+++ C:/devel/lyx/branch/src/output_latex.cpp    sam. déc. 18 19:06:14 2010
@@ -892,7 +892,8 @@
             par = TeXOnePar(buf, text, par, os, texrow,
                     runparams, everypar);
         }
-        if (distance(lastpar, par) >= distance(lastpar, endpar))
+
+        if (par == endpar)
             break;
     }



Reply via email to