]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.cpp
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / InsetMathChar.cpp
index 8c8f1ef141e37cc278059fa0813fca3c86584ef5..6caf09aeff28e5eb4aa748fce5358223ec53848e 100644 (file)
 #include "MathStream.h"
 #include "MetricsInfo.h"
 
-#include "support/debug.h"
 #include "Dimension.h"
+#include "Encoding.h"
+#include "LaTeXFeatures.h"
 #include "TextPainter.h"
 
-#include "support/lstrings.h"
-
 #include "frontends/FontMetrics.h"
 
+#include "support/debug.h"
+#include "support/lstrings.h"
+
 
 namespace lyx {
 
@@ -135,6 +137,13 @@ void InsetMathChar::write(WriteStream & os) const
 }
 
 
+void InsetMathChar::validate(LaTeXFeatures & features) const
+{
+       if (char_ >= 0x80)
+               encodings.validate(char_, features, true);
+}
+
+
 void InsetMathChar::normalize(NormalStream & os) const
 {
        os << "[char ";