Avoid infinite loop.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27387 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-11-11 17:44:55 +00:00
parent 24fe5b08c0
commit d5d1987d99

View File

@ -996,6 +996,7 @@ def revert_inset_command(document):
m = r.match(nextline)
if not m:
document.warning("Malformed LyX document: Missing LatexCommand in " + document.body[i] + ".")
i += 1
continue
cmdName = m.group(1)
insertion = ["\\begin_inset LatexCommand " + cmdName]