]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_scriptinset.C
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / math_scriptinset.C
index 8d46fe151f7ef90b4cca696c3fc74c667e4a8c39..07bf1164b7ae254b9f456eb4da1e5233ef9a5634 100644 (file)
@@ -513,9 +513,10 @@ void MathScriptInset::notifyCursorLeaves(idx_type idx)
 }
 
 
-DispatchResult
-MathScriptInset::priv_dispatch(LCursor & bv, FuncRequest const & cmd)
+void MathScriptInset::priv_dispatch(LCursor & cur, FuncRequest const & cmd)
 {
+       //lyxerr << "MathScriptInset: request: " << cmd << std::endl;
+
        if (cmd.action == LFUN_MATH_LIMITS) {
                if (!cmd.argument.empty()) {
                        if (cmd.argument == "limits")
@@ -528,8 +529,8 @@ MathScriptInset::priv_dispatch(LCursor & bv, FuncRequest const & cmd)
                        limits_ = hasLimits() ? -1 : 1;
                else
                        limits_ = 0;
-               return DispatchResult(true, true);
+               return;
        }
 
-       return MathNestInset::priv_dispatch(bv, cmd);
+       MathNestInset::priv_dispatch(cur, cmd);
 }