mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
24fe5b08c0
commit
d5d1987d99
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user