]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_scriptinset.C
float2string #4 (Spacing)
[lyx.git] / src / mathed / math_scriptinset.C
index dffd25c0c9b8646667fd378177775ff50afaeeff..cf23765572186e00b490bb7606b1210e4e5316e8 100644 (file)
@@ -47,8 +47,7 @@ MathScriptInset::MathScriptInset(MathAtom const & at, bool up)
 }
 
 
-
-auto_ptr<InsetBase> MathScriptInset::clone() const
+auto_ptr<InsetBase> MathScriptInset::doClone() const
 {
        return auto_ptr<InsetBase>(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);
 }