fix lyx2lyx functions

This commit is contained in:
Juergen Spitzmueller 2024-08-17 16:19:10 +02:00
parent 5b5127891d
commit 01f5efbe13

View File

@ -653,7 +653,8 @@ def convert_index_sc(document):
k = find_substring(document.body, ec, k, j)
if k == -1:
break
if get_containing_inset(document.body, k)[0] == "ERT":
inInset = get_containing_inset(document.body, k)
if inInset and inInset[0] == "ERT":
k += 1
continue
@ -696,7 +697,8 @@ def revert_index_sc(document):
k = find_substring(document.body, ec, k, j)
if k == -1:
break
if get_containing_inset(document.body, k)[0] == "ERT":
inInset = get_containing_inset(document.body, k)
if inInset and inInset[0] == "ERT":
k += 1
continue