commit a4d1f69c629e28dfb2f39994511d127e6fde67a1
Author: Pavel Sanda <[email protected]>
Date: Tue Aug 5 18:47:40 2025 +0200
Fix warning on qt6 + debian testing.
Someone knowing the code better should double check.
https://marc.info/?l=lyx-devel&m=175395502701116&w=2
---
src/Trans.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/Trans.cpp b/src/Trans.cpp
index 2a3daf9df0..12086658b1 100644
--- a/src/Trans.cpp
+++ b/src/Trans.cpp
@@ -17,6 +17,7 @@
#include "support/debug.h"
#include "support/docstream.h"
+#include "support/lassert.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/Lexer.h"
@@ -362,6 +363,8 @@ docstring const Trans::process(char_type c, TransManager &
k)
if (!t.empty() && t[0] != 0)
return t; //return k.normalkey(c);
+ LASSERT(t.size()>1, return docstring());
+
return k.deadkey(c, kmod_list_[static_cast<tex_accent>(t[1])]);
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs