X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathCancelto.cpp;h=1a7d38c78ffb2f2b3bf2907237e288ec66e7accb;hb=a11780b59fcb6cdd16b15f9fa4de45d7ddfd1b2a;hp=f3ead3cd3a6dd2bea6d75cc46ff7ddfe7fa1e135;hpb=ce8929e9b237af569934b434154d199634363268;p=features.git diff --git a/src/mathed/InsetMathCancelto.cpp b/src/mathed/InsetMathCancelto.cpp index f3ead3cd3a..1a7d38c78f 100644 --- a/src/mathed/InsetMathCancelto.cpp +++ b/src/mathed/InsetMathCancelto.cpp @@ -42,7 +42,7 @@ Inset * InsetMathCancelto::clone() const 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; @@ -88,7 +88,7 @@ void InsetMathCancelto::draw(PainterInfo & pi, int x, int y) const } -void InsetMathCancelto::write(WriteStream & os) const +void InsetMathCancelto::write(TeXMathStream & os) const { MathEnsurer ensurer(os); os << "\\cancelto{" << cell(1) << "}{" << cell(0) << '}'; @@ -102,7 +102,7 @@ void InsetMathCancelto::normalize(NormalStream & os) const 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;