rgheck schreef:
Vincent van Ravesteijn wrote:
Abdelrazak Younes schreef:
you...@lyx.org wrote:
Author: younes
Date: Mon Mar  9 18:38:35 2009
New Revision: 28742

URL: http://www.lyx.org/trac/changeset/28742
Log:
Avoid infinite loop with Qt4.5 (asserts instead).

Juergen, I don't have the time to investigate further but I think this at least should go in 1.6.2 if it is not fixed properly.

Abdel.

Abdel,

Is it ok that I revert your commits before committing a real fix :) ?

I'm glad you found the real cause. And I'd agree that this needs to go into 1.6.2.

The attached patch would seem necessary as well, yes? And I see all of these, btw:

LaTeXHighlighter.cpp:43:        int index = text.indexOf(exprMath);
LaTeXHighlighter.cpp:47: index = text.indexOf(exprMath, index + length); LaTeXHighlighter.cpp:75: startIndex = text.indexOf(exprStartDispMath); LaTeXHighlighter.cpp:79: int endIndex = text.indexOf(exprEndDispMath, startIndex); LaTeXHighlighter.cpp:88: startIndex = text.indexOf(exprStartDispMath, startIndex + length);
LaTeXHighlighter.cpp:96:        index = text.indexOf(exprKeyword);
LaTeXHighlighter.cpp:100: index = text.indexOf(exprKeyword, index + length);
LaTeXHighlighter.cpp:113:       text.indexOf(exprComment);
LaTeXHighlighter.cpp:119: text.indexOf(exprComment, index + length);
LaTeXHighlighter.cpp:129:       index = text.indexOf(exprWarning);
LaTeXHighlighter.cpp:133: index = text.indexOf(exprWarning, index + length);

Richard

Yes, I'm already committing stuff..

Vincent

Reply via email to