]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/command_inset.C
bug + spped fixes + small stuff
[lyx.git] / src / mathed / command_inset.C
index e8f97a5e00165aadac95af1ab829e125bfda75fb..8ddd8fbe9aff80b96dc6d302888d40f4f986e5a7 100644 (file)
@@ -13,6 +13,7 @@
 #include "command_inset.h"
 #include "math_data.h"
 #include "math_mathmlstream.h"
+#include "dispatchresult.h"
 #include "funcrequest.h"
 #include "support/std_sstream.h"
 
@@ -52,14 +53,15 @@ void CommandInset::draw(PainterInfo & pi, int x, int y) const
        button_.draw(pi, x, y);
 }
 
-dispatch_result
-CommandInset::dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
+
+DispatchResult
+CommandInset::priv_dispatch(LCursor & bv, FuncRequest const & cmd)
 {
        switch (cmd.action) {
                default:
-                       return MathNestInset::dispatch(cmd, idx, pos);
+                       return MathNestInset::priv_dispatch(bv, cmd);
        }
-       return UNDISPATCHED;
+       return DispatchResult(false);
 }