Correct index

This commit is contained in:
Juergen Spitzmueller 2019-08-23 22:36:35 +02:00
parent 69ed8cb89a
commit 02a31b4c5c

View 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: