[LyX/master] Fix #13288

Juergen Spitzmueller <[email protected]>
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit abaf03b71734400a6764f3899788197dc116775a
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Mar 10 16:58:13 2026 +0100

    Fix #13288
---
 lib/lyx2lyx/lyx_2_6.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/lyx2lyx/lyx_2_6.py b/lib/lyx2lyx/lyx_2_6.py
index 99785454fc..9c9b52699c 100644
--- a/lib/lyx2lyx/lyx_2_6.py
+++ b/lib/lyx2lyx/lyx_2_6.py
@@ -313,6 +313,12 @@ def revert_mathref(document):
                         if k == -1 or l == j:
                             i = j
                             break
+                        m = regexp.match(document.body[k])
+                        if m:
+                            pretext = m.group(1)
+                            cmd = m.group(2)
+                            arg = m.group(3)
+                            posttext = m.group(4)
 
             arguments = arg[1:-1].split(",")
             
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.