]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/lyx_1_6.py
Fix up revert_longtable_align routine. Also, fix a couple thinkos in an
[lyx.git] / lib / lyx2lyx / lyx_1_6.py
index 8a33eaace795b63508bd4aea6a506df195dc17d2..4058f46fb6e0481554e3ea46130f54112259a359 100644 (file)
@@ -572,9 +572,10 @@ def revert_tablines(document):
         i = find_token(document.body, "\\begin_inset Tabular", i)
         if i == -1:
             return
-        j = find_end_of_inset(document.body, i + 1)
+        j = find_end_of_inset(document.body, i)
         if j == -1:
             document.warning("Malformed LyX document: Could not find end of tabular.")
+            i += 1
             continue
 
         m = i + 1