mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fix crash loading old files (http://www.mail-archive.com/lyx-users%40lists.lyx.org/msg57472.html)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19101 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9d89b98987
commit
aafefdbe26
@ -444,6 +444,13 @@ def convert_commandparams(document):
|
|||||||
i = i + 1
|
i = i + 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
j = find_token(document.body, "\\end_inset", i + 1)
|
||||||
|
if j == -1:
|
||||||
|
document.warning("Malformed document")
|
||||||
|
else:
|
||||||
|
command += "".join(document.body[i+1:j])
|
||||||
|
document.body[i+1:j] = []
|
||||||
|
|
||||||
# The following parser is taken from the original InsetCommandParams::scanCommand
|
# The following parser is taken from the original InsetCommandParams::scanCommand
|
||||||
name = ""
|
name = ""
|
||||||
option1 = ""
|
option1 = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user