X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_scriptinset.C;h=cf23765572186e00b490bb7606b1210e4e5316e8;hb=701b99ecd70ac472aa53c8b2317af44def4f9670;hp=dffd25c0c9b8646667fd378177775ff50afaeeff;hpb=25b1956b2a8f8bf5b4d8393a8aac9c421fc52c89;p=lyx.git diff --git a/src/mathed/math_scriptinset.C b/src/mathed/math_scriptinset.C index dffd25c0c9..cf23765572 100644 --- a/src/mathed/math_scriptinset.C +++ b/src/mathed/math_scriptinset.C @@ -47,8 +47,7 @@ MathScriptInset::MathScriptInset(MathAtom const & at, bool up) } - -auto_ptr MathScriptInset::clone() const +auto_ptr MathScriptInset::doClone() const { return auto_ptr(new MathScriptInset(*this)); } @@ -560,7 +559,7 @@ void MathScriptInset::notifyCursorLeaves(LCursor & cur) lyxerr << "MathScriptInset::notifyCursorLeaves: 1 " << cur << endl; // remove empty scripts if possible -if (0) { +if (1) { if (nargs() > 2 && cur.idx() == 2 && cell(2).empty()) { // must be a subscript... removeScript(false); @@ -574,7 +573,7 @@ if (0) { } -void MathScriptInset::priv_dispatch(LCursor & cur, FuncRequest & cmd) +void MathScriptInset::doDispatch(LCursor & cur, FuncRequest & cmd) { //lyxerr << "MathScriptInset: request: " << cmd << std::endl; @@ -593,5 +592,5 @@ void MathScriptInset::priv_dispatch(LCursor & cur, FuncRequest & cmd) return; } - MathNestInset::priv_dispatch(cur, cmd); + MathNestInset::doDispatch(cur, cmd); }