commit fde25a7d3d821646c16783b36c6ab1b983cbb002
Author: Juergen Spitzmueller <[email protected]>
Date:   Fri Oct 10 17:04:50 2025 +0200

    Assure main language xref definitions are restored after switch from 
secondary language
    
    (cherry picked from commit 5b5cddaaf7f6191d675b2cbf3af389380d6356cf)
---
 src/LaTeXFeatures.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index 3a853a2d62..7363729764 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -2451,6 +2451,16 @@ docstring const 
LaTeXFeatures::getTClassI18nPreamble(bool use_babel,
                                                buffer().language(),
                                                buffer().params().encoding(),
                                                use_polyglossia, false));
+                       if (!thmxref.empty())
+                               
snippets.insert(i18npreamble("\\addto\\captions$$lang{" + rtrim(thmxref, "\n") 
+ "}\n",
+                                                            
buffer().language(),
+                                                            
buffer().params().encoding(),
+                                                            use_polyglossia, 
false));
+                       if (!xxref.empty())
+                               
snippets.insert(i18npreamble("\\addto\\captions$$lang{" + rtrim(xxref, "\n") + 
"}\n",
+                                                            
buffer().language(),
+                                                            
buffer().params().encoding(),
+                                                            use_polyglossia, 
false));
                        for (lang_it lit = lbeg; lit != lend; ++lit) {
                                if (!thmxref.empty())
                                        
snippets.insert(i18npreamble("\\addto\\captions$$lang{" + rtrim(thmxref, "\n") 
+ "}\n",
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to