]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/lyx_2_2.py
Pass parameters by reference (performance)
[lyx.git] / 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