Abdelrazak Younes wrote:
Hello,

It took a great deal of step by step debugging but my supposition was right, redoParagraph() is the culprit! The reason why the slowdown (and the csrss.exe) appears only in the line following a big formula is because of this code in rowpainter.C, line 1008:

// Cache one paragraph above and one below
// Note MV: this cannot be suppressed even for singlepar.
// Try viewing the User Guide Mobius figure

The funny thing is that trying to view this figure in UserGuide.lyx crashes LyX even though this code is here...


if (vi.p1 > 0) {
    text.redoParagraph(bv, vi.p1 - 1);  // <- HERE!!!
    bv.coordCache().parPos()[&text][vi.p1 - 1] =
        Point(0, vi.y1 - text.getPar(vi.p1 - 1).descent());
}


So this is _entirely_ about fontmetrics and paragraph breaking in math.

I'm good! :-)

Abdel.



Reply via email to