Handle the case where insetgraphics has no size_kind token

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5129 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-08-28 09:03:45 +00:00
parent 3c7c7a3209
commit 1d1289f503

View File

@ -44,6 +44,7 @@ def change_insetgraphics(lines):
k = find_token2(lines, "size_type", i, j)
if k == -1:
k = find_token2(lines, "size_kind", i, j)
if k != -1:
size_type = string.split(lines[k])[1]
del lines[k]
j = j-1
@ -62,6 +63,7 @@ def change_insetgraphics(lines):
k = find_token2(lines, "lyxsize_type", i, j)
if k == -1:
k = find_token2(lines, "lyxsize_kind", i, j)
if k != -1:
lyxsize_type = string.split(lines[k])[1]
del lines[k]
j = j-1