mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 19:38:18 +00:00
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:
parent
3c7c7a3209
commit
1d1289f503
@ -44,6 +44,7 @@ def change_insetgraphics(lines):
|
|||||||
k = find_token2(lines, "size_type", i, j)
|
k = find_token2(lines, "size_type", i, j)
|
||||||
if k == -1:
|
if k == -1:
|
||||||
k = find_token2(lines, "size_kind", i, j)
|
k = find_token2(lines, "size_kind", i, j)
|
||||||
|
if k != -1:
|
||||||
size_type = string.split(lines[k])[1]
|
size_type = string.split(lines[k])[1]
|
||||||
del lines[k]
|
del lines[k]
|
||||||
j = j-1
|
j = j-1
|
||||||
@ -62,6 +63,7 @@ def change_insetgraphics(lines):
|
|||||||
k = find_token2(lines, "lyxsize_type", i, j)
|
k = find_token2(lines, "lyxsize_type", i, j)
|
||||||
if k == -1:
|
if k == -1:
|
||||||
k = find_token2(lines, "lyxsize_kind", i, j)
|
k = find_token2(lines, "lyxsize_kind", i, j)
|
||||||
|
if k != -1:
|
||||||
lyxsize_type = string.split(lines[k])[1]
|
lyxsize_type = string.split(lines[k])[1]
|
||||||
del lines[k]
|
del lines[k]
|
||||||
j = j-1
|
j = j-1
|
||||||
|
Loading…
Reference in New Issue
Block a user