]> 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 52f97962989b6be46fb97292ab51fc11bf784e29..07bf1164b7ae254b9f456eb4da1e5233ef9a5634 100644 (file)
@@ -444,13 +444,14 @@ void MathScriptInset::mathematica(MathematicaStream & os) const
        if (u)
                os << "^(" << up() << ')';
 
-       if (nuc().size())
+       if (nuc().size()) {
                if (d)
                        os << ',' << down() << ']';
+       }
 }
 
 
-void MathScriptInset::mathmlize( MathMLStream & os) const
+void MathScriptInset::mathmlize(MathMLStream & os) const
 {
        bool d = hasDown() && down().size();
        bool u = hasUp() && up().size();
@@ -512,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")
@@ -527,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);
 }