From b8502a3ea2735c4bd6df3dd0e4ac2825794caf68 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 3 Nov 2022 05:54:50 +0100 Subject: [PATCH] Fix glitch in index reversion routine --- lib/lyx2lyx/lyx_2_4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py index 43b7ce3124..eefd283538 100644 --- a/lib/lyx2lyx/lyx_2_4.py +++ b/lib/lyx2lyx/lyx_2_4.py @@ -4509,7 +4509,7 @@ def revert_index_macros(document): document.warning("Malformed LyX document: Can't find end of index macro inset plain layout at line %d" % i) else: xicont = document.body[xiimpl:xiimple] - xxicont = document.body[iimpl:xiimpl] + document.body[xiimple+1:iimple] + xxicont = document.body[xiimple+1:xiim] + document.body[xiime+1:iimple] icont = xicont + put_cmd_in_ert("@") + xxicont[1:] if len(subentry) > 0: subentry2 = icont[1:]