]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathCancelto.cpp
Do not allow pasting backslashes in macro names
[features.git] / src / mathed / InsetMathCancelto.cpp
index f3ead3cd3a6dd2bea6d75cc46ff7ddfe7fa1e135..1a7d38c78ffb2f2b3bf2907237e288ec66e7accb 100644 (file)
@@ -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;