commit ceffadfbab676577fb08e36f987741844b558a79
Author: Juergen Spitzmueller <sp...@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 + "}"
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to