]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathChar.cpp
In mathmode, treat nonascii chars with diacritical marks as an input method
[features.git] / src / mathed / InsetMathChar.cpp
index 6caf09aeff28e5eb4aa748fce5358223ec53848e..a4640f2d159416572d37994cc2c6f5141e453171 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "support/debug.h"
 #include "support/lstrings.h"
+#include "support/textutils.h"
 
 
 namespace lyx {
@@ -41,7 +42,7 @@ static bool isBinaryOp(char_type c)
 
 static bool slanted(char_type c)
 {
-       return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z');
+       return isAlphaASCII(c) || Encodings::isMathAlpha(c);
 }