]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFontOld.C
Account for kerning when positioning scripts in the MathFontOld and
[lyx.git] / src / mathed / InsetMathFontOld.C
index e2c360d44efbb947e9deae4ceec4c0158de8fb95..21c8e17bd095cf0a7e4b1d8ecfe7d0fa951873bf 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "InsetMathFontOld.h"
 #include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 #include "MathParser.h"
 #include "MathStream.h"
 #include "support/std_ostream.h"
@@ -36,12 +36,15 @@ auto_ptr<InsetBase> InsetMathFontOld::doClone() const
 }
 
 
-void InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const
+bool InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, key_->name.c_str());
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
+       if (dim_ == dim)
+               return false;
        dim_ = dim;
+       return true;
 }
 
 
@@ -77,7 +80,7 @@ void InsetMathFontOld::normalize(NormalStream & os) const
 }
 
 
-void InsetMathFontOld::infoize(std::ostream & os) const
+void InsetMathFontOld::infoize(odocstream & os) const
 {
        os << "Font: " << key_->name;
 }