]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathKern.cpp
Get rid of Inset::setPosCache
[lyx.git] / src / mathed / InsetMathKern.cpp
index fddecfe58e27c7cc19b905b8b1c8d674e74149df..71723b99561f2369340dfee1f35b38c208d944e3 100644 (file)
 #include <config.h>
 
 #include "InsetMathKern.h"
-#include "MathStream.h"
+
 #include "MathStream.h"
 #include "MathSupport.h"
+
 #include "Dimension.h"
+#include "MetricsInfo.h"
 
 #include "support/docstring.h"
 
@@ -47,7 +49,7 @@ void InsetMathKern::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        dim.asc = 0;
        dim.des = 0;
-       dim.wid = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
+       dim.wid = wid_.inPixels(mi.base);
 }
 
 
@@ -73,10 +75,4 @@ void InsetMathKern::normalize(NormalStream & os) const
 }
 
 
-docstring InsetMathKern::mathmlize(MathStream &) const
-{
-       return docstring();
-}
-
-
 } // namespace lyx