]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.cpp
Get rid of Inset::setPosCache
[lyx.git] / src / mathed / InsetMath.cpp
index cbf33cdf8707bf76aa82d51131fa181fc3eb53e3..ba559e7eb6b4888080cc140c303526125602a65a 100644 (file)
@@ -58,11 +58,10 @@ MathClass InsetMath::mathClass() const
 }
 
 
-bool InsetMath::addToMathRow(MathRow & mrow, MetricsInfo & mi) const
+bool InsetMath::addToMathRow(MathRow & mrow, MetricsInfo & ) const
 {
-       MathRow::Element e(MathRow::INSET, mi);
+       MathRow::Element e(MathRow::INSET, mathClass());
        e.inset = this;
-       e.mclass = mathClass();
        mrow.push_back(e);
        return true;
 }