[LyX/master] lyx2lyx: fix glitch in revert_starred_refs

Juergen Spitzmueller spitz at lyx.org
Wed Dec 21 06:56:24 UTC 2022


commit ceffadfbab676577fb08e36f987741844b558a79
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Wed Dec 21 08:52:44 2022 +0100

    lyx2lyx: fix glitch in revert_starred_refs
---
 lib/lyx2lyx/lyx_2_4.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py
index 98d7e02..520b14c 100644
--- a/lib/lyx2lyx/lyx_2_4.py
+++ b/lib/lyx2lyx/lyx_2_4.py
@@ -4580,6 +4580,7 @@ def revert_starred_refs(document):
                 # document.warning("Skipping " + cmd + " " + ref)
                 if nolinkline != -1:
                     del document.body[nolinkline]
+                    nolinkline = -1
                 continue
             # We need to construct a new command and put it in ERT
             newcmd = "\\" + cmd + "*{" + ref + "}"


More information about the lyx-cvs mailing list