X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathScript.cpp;h=487c17b4770f1cbd38aece12bc599dd3e9447f16;hb=7f17f13bfc2ad4e7cdd8ecfce23374e2b3d0c646;hp=71aeeff773997d75a5e89102907673346c24947f;hpb=31059d1741933d95403e7f07ed033cae482f778b;p=lyx.git diff --git a/src/mathed/InsetMathScript.cpp b/src/mathed/InsetMathScript.cpp index 71aeeff773..487c17b477 100644 --- a/src/mathed/InsetMathScript.cpp +++ b/src/mathed/InsetMathScript.cpp @@ -52,9 +52,9 @@ InsetMathScript::InsetMathScript(MathAtom const & at, bool up) } -auto_ptr InsetMathScript::doClone() const +auto_ptr InsetMathScript::doClone() const { - return auto_ptr(new InsetMathScript(*this)); + return auto_ptr(new InsetMathScript(*this)); } @@ -340,7 +340,7 @@ void InsetMathScript::draw(PainterInfo & pi, int x, int y) const else { nuc().setXY(*pi.base.bv, x + dxx(), y); if (editing(pi.base.bv)) - pi.draw(x + dxx(), y, char_type('.')); + pi.draw(x + dxx(), y, char_type('.')); } ScriptChanger dummy(pi.base); if (hasUp()) @@ -440,7 +440,7 @@ bool InsetMathScript::hasDown() const } -InsetBase::idx_type InsetMathScript::idxOfScript(bool up) const +Inset::idx_type InsetMathScript::idxOfScript(bool up) const { if (nargs() == 1) return 0; @@ -484,7 +484,7 @@ bool InsetMathScript::idxUpDown(Cursor & cur, bool up) const } // Are we 'up'? - if (has(up) && cur.idx() == idxOfScript(true)) { + if (cur.idx() == idxOfScript(true)) { // can't go further up if (up) return false; @@ -495,7 +495,7 @@ bool InsetMathScript::idxUpDown(Cursor & cur, bool up) const } // Are we 'down'? - if (has(up) && cur.idx() == idxOfScript(false)) { + if (cur.idx() == idxOfScript(false)) { // can't go further down if (!up) return false;