Fix another infinite loop.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35997 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-02 15:22:16 +00:00
parent d7c31dfff3
commit 4d2b6ffc78

View File

@ -572,9 +572,10 @@ def revert_tablines(document):
i = find_token(document.body, "\\begin_inset Tabular", i)
if i == -1:
return
j = find_end_of_inset(document.body, i + 1)
j = find_end_of_inset(document.body, i)
if j == -1:
document.warning("Malformed LyX document: Could not find end of tabular.")
i += 1
continue
m = i + 1