]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnknown.cpp
typo
[lyx.git] / src / mathed / InsetMathUnknown.cpp
index 03c41462f03ab680ad9b7cda87863facfa03309f..92d6b416e1fe31ef2c894c5f74447bee6d970527 100644 (file)
 #include <config.h>
 
 #include "InsetMathUnknown.h"
+
 #include "MathSupport.h"
 #include "MathAtom.h"
 #include "MathStream.h"
-#include "MathStream.h"
+
+#include "MetricsInfo.h"
 
 #include "frontends/Painter.h"
 
 
 namespace lyx {
 
-InsetMathUnknown::InsetMathUnknown(docstring const & nm,
+InsetMathUnknown::InsetMathUnknown(docstring const & name,
        docstring const & selection, bool final, bool black)
-       : name_(nm), final_(final), black_(black), selection_(selection)
+       : name_(name), final_(final), black_(black), kerning_(0),
+         selection_(selection)
 {}
 
 
@@ -47,7 +50,7 @@ void InsetMathUnknown::normalize(NormalStream & os) const
 
 void InsetMathUnknown::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       mathed_string_dim(mi.base.font, name_, dim);
+       metricsStrRedBlack(mi, dim, name_);
        docstring::const_reverse_iterator rit = name_.rbegin();
        kerning_ = mathed_char_kerning(mi.base.font, *rit);
 }
@@ -86,7 +89,7 @@ void InsetMathUnknown::mathematica(MathematicaStream & os) const
 }
 
 
-void InsetMathUnknown::mathmlize(MathStream &) const
+void InsetMathUnknown::mathmlize(MathMLStream &) const
 {
        throw MathExportException();
 }