From 755eb8b98992381bb53a94128f1fb13b44125c44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Wed, 15 Jan 2003 14:17:56 +0000 Subject: [PATCH] Fix bug #816 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5958 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 5 +++++ lib/lyx2lyx/lyxconvert_218.py | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) 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) -- 2.39.2