]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyx_1_6.py
Avoid infinite loop.
[features.git] / lib / lyx2lyx / lyx_1_6.py
index d63e172a5236d8fb10819bf4da93bd0868661761..0b2bf069c58a00ec53dde57fc1c835c383915db5 100644 (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]