]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_nestinset.C
more IU
[lyx.git] / src / mathed / math_nestinset.C
index 4924a04ac1bc1e7e9efadcefedfba6abf648adb7..36c90752345b9f5985e801c132b0b36cdbcdd3d5 100644 (file)
@@ -197,17 +197,6 @@ void MathNestInset::validate(LaTeXFeatures & features) const
 }
 
 
-bool MathNestInset::match(MathAtom const & at) const
-{
-       if (nargs() != at->nargs())
-               return false;
-       for (idx_type i = 0; i < nargs(); ++i)
-               if (!cell(i).match(at->cell(i)))
-                       return false;
-       return true;
-}
-
-
 void MathNestInset::replace(ReplaceData & rep)
 {
        for (idx_type i = 0; i < nargs(); ++i)
@@ -299,7 +288,7 @@ MathNestInset::priv_dispatch(FuncRequest const & cmd,
                        mathed_parse_cell(ar, cmd.argument);
                        cell(idx).insert(pos, ar);
                        pos += ar.size();
-                       return DispatchResult(DISPATCHED);
+                       return DispatchResult(true, true);
                }
 
                case LFUN_PASTESELECTION:
@@ -310,7 +299,7 @@ MathNestInset::priv_dispatch(FuncRequest const & cmd,
                case LFUN_MOUSE_PRESS:
                        if (cmd.button() == mouse_button::button2)
                                return priv_dispatch(FuncRequest(bv, LFUN_PASTESELECTION), idx, pos);
-                       return DispatchResult(UNDISPATCHED);
+                       return DispatchResult(false);
 
                default:
                        return MathInset::priv_dispatch(cmd, idx, pos);