]> git.lyx.org Git - features.git/commitdiff
Fix stupid copy-paste error
authorGeorg Baum <baum@lyx.org>
Mon, 2 Mar 2015 19:57:26 +0000 (20:57 +0100)
committerGeorg Baum <baum@lyx.org>
Mon, 2 Mar 2015 19:57:26 +0000 (20:57 +0100)
Now the conversion to 2.1.x works again

lib/lyx2lyx/lyx_2_2.py

index 59f32c495c89c3c4588818e1445bb89ad4654f93..82f12e26cbe28e09511715f3d9e00a5bfbcf551f 100644 (file)
@@ -615,6 +615,7 @@ def revert_phrases(document):
 
     i = 0
     while i < len(document.body):
+        words = document.body[i].split()
         if len(words) > 1 and words[0] == "\\begin_inset" and \
            words[1] in ["CommandInset", "External", "Formula", "Graphics", "listings"]:
             # see convert_phrases