]> git.lyx.org Git - features.git/commitdiff
Correct index
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 23 Aug 2019 20:36:35 +0000 (22:36 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 23 Aug 2019 20:36:35 +0000 (22:36 +0200)
lib/lyx2lyx/LyX.py

index b91350100e5144c071f4e37a4a03b6a970107a00..3d62da5d4b786985d3ca8c8b523ac1190d4e1ead 100644 (file)
@@ -798,7 +798,7 @@ class LyX_base:
                 self.warning("Malformed LyX document! No \\language header found!")
                 return
             self.header[k : k] = ["\\begin_local_layout", "\\end_local_layout"]
-            i = k - 1
+            i = k
 
         j = find_end_of(self.header, i, "\\begin_local_layout", "\\end_local_layout")
         if j == -1: