From: José Matox Date: Wed, 15 Jan 2003 14:17:56 +0000 (+0000) Subject: Fix bug #816 X-Git-Tag: 1.6.10~17683 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=755eb8b98992381bb53a94128f1fb13b44125c44;p=features.git Fix bug #816 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5958 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 26fe341414..42a7e242d9 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-01-15 Michael Schmitt + + * lyx2lyx/lyxconvert_218.py(remove_figinset): + Fix bug 816, make function more robust. + 2003-01-13 Angus Leeming * scripts/convertDefault.sh: make it return the exit status of the diff --git a/lib/lyx2lyx/lyxconvert_218.py b/lib/lyx2lyx/lyxconvert_218.py index 4b94a5388a..184146e7fc 100644 --- a/lib/lyx2lyx/lyxconvert_218.py +++ b/lib/lyx2lyx/lyxconvert_218.py @@ -379,8 +379,12 @@ def remove_figinset(lines): break j = find_end_of_inset(lines, i) - lyxwidth = string.split(lines[i])[3]+"pt" - lyxheight = string.split(lines[i])[4]+"pt" + if ( len(string.split(lines[i])) > 2 ): + lyxwidth = string.split(lines[i])[3]+"pt" + lyxheight = string.split(lines[i])[4]+"pt" + else: + lyxwidth = "" + lyxheight = "" filename = get_value(lines, "file", i+1, j)