namespace lyx {
-InsetMathXYMatrix::InsetMathXYMatrix(LyXLength const & s, char c)
+InsetMathXYMatrix::InsetMathXYMatrix(Length const & s, char c)
: InsetMathGrid(1, 1), spacing_(s), spacing_code_(c)
{}
-std::auto_ptr<InsetBase> InsetMathXYMatrix::doClone() const
+Inset * InsetMathXYMatrix::clone() const
{
- return std::auto_ptr<InsetBase>(new InsetMathXYMatrix(*this));
+ return new InsetMathXYMatrix(*this);
}
}
-bool InsetMathXYMatrix::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathXYMatrix::metrics(MetricsInfo & mi, Dimension & dim) const
{
if (mi.base.style == LM_ST_DISPLAY)
mi.base.style = LM_ST_TEXT;
InsetMathGrid::metrics(mi, dim);
- if (dim_ == dim)
- return false;
- dim_ = dim;
- return true;
}