]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_scriptinset.C
Georg Baum's vspace change
[lyx.git] / src / mathed / math_scriptinset.C
index 524a2d580105a50f24907f99809a268243fd6f32..3c226e2ab3f04ece5185d0e314c26dd27d669c03 100644 (file)
@@ -15,6 +15,7 @@
 #include "math_mathmlstream.h"
 #include "math_support.h"
 #include "math_symbolinset.h"
+#include "dispatchresult.h"
 #include "debug.h"
 #include "funcrequest.h"
 
@@ -511,8 +512,9 @@ void MathScriptInset::notifyCursorLeaves(idx_type idx)
 }
 
 
-dispatch_result MathScriptInset::dispatch
-       (FuncRequest const & cmd, idx_type & idx, pos_type & pos)
+DispatchResult
+MathScriptInset::priv_dispatch(FuncRequest const & cmd,
+                         idx_type & idx, pos_type & pos)
 {
        if (cmd.action == LFUN_MATH_LIMITS) {
                if (!cmd.argument.empty()) {
@@ -526,7 +528,7 @@ dispatch_result MathScriptInset::dispatch
                        limits_ =  (hasLimits()) ? -1 : 1;
                else
                        limits_ = 0;
-               return DISPATCHED;
+               return DispatchResult(true, true);
        }
 
        return MathNestInset::priv_dispatch(cmd, idx, pos);