]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyx_1_6.py
Fix problem with conversion of empty insets. Also, fix problem with error message.
[features.git] / lib / lyx2lyx / lyx_1_6.py
index e6bf42515030a468efc74e7c813daacdfe8269b1..50bf98f0df63065b6e380cae1fcfc77e878dd5e4 100644 (file)
@@ -1078,9 +1078,9 @@ def convert_latexcommand_index(document):
         if document.body[i + 1] != "LatexCommand index": # Might also be index_print
             i += 1
             continue
-        j = find_end_of_inset(document.body, i + 2)
+        j = find_end_of_inset(document.body, i + 1)
         if j == -1:
-            document.warning("Unable to find end of index inset at line " + i + "!")
+            document.warning("Unable to find end of index inset at line " + str(i) + "!")
             i += 2
             continue
         m = r1.match(document.body[i + 2])