]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.cpp
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / InsetMathChar.cpp
index 02013d901367196c6499b8f4865a2a125084276c..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 {
 
@@ -84,8 +86,6 @@ void InsetMathChar::metrics(MetricsInfo & mi, Dimension & dim) const
                dim.wid += 2 * theFontMetrics(font_).width(' ');
        lyxerr << "InsetMathChar::metrics: " << dim << endl;
 #endif
-       // Cache the inset dimension. 
-       setDimCache(mi, dim);
 }
 
 
@@ -137,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 ";