]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #816
authorJosé Matox <jamatos@lyx.org>
Wed, 15 Jan 2003 14:17:56 +0000 (14:17 +0000)
committerJosé Matox <jamatos@lyx.org>
Wed, 15 Jan 2003 14:17:56 +0000 (14:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5958 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/lyx2lyx/lyxconvert_218.py

index 26fe3414143cf00add64ebfda8ad2d649ca51b1c..42a7e242d9b3589dc4483cc2cc206774f194b747 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-15  Michael Schmitt  <Michael.Schmitt@teststep.org>
+
+       * lyx2lyx/lyxconvert_218.py(remove_figinset):
+       Fix bug 816, make function more robust.
+
 2003-01-13  Angus Leeming  <leeming@lyx.org>
 
        * scripts/convertDefault.sh: make it return the exit status of the
index 4b94a5388a0a65de25a0e7070fc81f4240f63aca..184146e7fc2907729e4d3aad21a7006fda63bd50 100644 (file)
@@ -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)