[LyX/master] Fix a couple of cut&paste errors

Juergen Spitzmueller <[email protected]> Mon, 03 Aug 2026 16:48:17 +0000
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit 5ece42640b23863985a0849b4a4a431b8cc64847
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Aug 3 18:47:48 2026 +0200

    Fix a couple of cut&paste errors
    
    Thanks to Pavel and Claude
---
 lib/lyx2lyx/lyx_2_6.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/lyx2lyx/lyx_2_6.py b/lib/lyx2lyx/lyx_2_6.py
index 5f16e30857..272f88af41 100644
--- a/lib/lyx2lyx/lyx_2_6.py
+++ b/lib/lyx2lyx/lyx_2_6.py
@@ -1278,7 +1278,7 @@ def revert_specialfonts(document):
         del document.header[i]
         i = find_token(document.header, "\\font_roman_special_opts", i)
 
-    sffonts_osf = {}
+    sffonts_opts = {}
     i = find_token(document.header, "\\font_sans_special_opts", 0)
     while i != -1:
         # We need to use this regex since split() does not handle quote protection
@@ -1314,7 +1314,7 @@ def revert_specialfonts(document):
         del document.header[i]
         i = find_token(document.header, "\\font_sans_special_scale", i)
 
-    ttfonts_opts = {}
+    ttfonts_scale = {}
     i = find_token(document.header, "\\font_typewriter_special_scale", 0)
     while i != -1:
         # We need to use this regex since split() does not handle quote protection
@@ -1380,7 +1380,7 @@ def revert_specialfonts(document):
             cmd += "\\babelfont["
             if is_script:
                 cmd += "*"
-            cmd += sfkey.lower() + "]{tt}"
+            cmd += ttkey.lower() + "]{tt}"
         opts = []
         if is_script and ttkey != "Latin":
             opts.append("Script=" + ttkey)
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs