void InsetMathCancelto::metrics(MetricsInfo & mi, Dimension & dim) const
{
Changer dummy = mi.base.changeEnsureMath();
- InsetMathNest::metrics(mi);
+ cellsMetrics(mi);
Dimension const & dim0 = cell(0).dimension(*mi.base.bv);
Dimension const & dim1 = cell(1).dimension(*mi.base.bv);
dim.asc = max(dim0.ascent() + 2, dim0.ascent() + dim1.ascent()) + 2 + 8;
}
-void InsetMathCancelto::write(WriteStream & os) const
+void InsetMathCancelto::write(TeXMathStream & os) const
{
MathEnsurer ensurer(os);
os << "\\cancelto{" << cell(1) << "}{" << cell(0) << '}';
bool InsetMathCancelto::idxUpDown(Cursor & cur, bool up) const
{
- Cursor::idx_type const target = up ? 1 : 0;
+ idx_type const target = up ? 1 : 0;
if (cur.idx() == target)
return false;
cur.idx() = target;