commit 02a31b4c5c2165fee7845986d222f118f5e0ded1
Author: Juergen Spitzmueller <[email protected]>
Date:   Fri Aug 23 22:36:35 2019 +0200

    Correct index
---
 lib/lyx2lyx/LyX.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py
index b913501..3d62da5 100644
--- a/lib/lyx2lyx/LyX.py
+++ b/lib/lyx2lyx/LyX.py
@@ -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:

Reply via email to