]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_gridinset.C
Georg Baum's vspace change
[lyx.git] / src / mathed / math_gridinset.C
index b5d39f4b267543a9b1de33c0a949c75185c7adaf..d16f82776cfd17ed3badbd83fc1ff4662a07013c 100644 (file)
@@ -1050,13 +1050,13 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                case LFUN_MOUSE_RELEASE:
                        //if (cmd.button() == mouse_button::button3) {
                        //      GridInsetMailer(*this).showDialog();
-                       //      return DISPATCHED;
+                       //      return DispatchResult(true, true);
                        //}
-                       return UNDISPATCHED;
+                       return DispatchResult(false);
 
                case LFUN_INSET_DIALOG_UPDATE:
                        GridInsetMailer(*this).updateDialog(cmd.view());
-                       return UNDISPATCHED;
+                       return DispatchResult(false);
 
                // insert file functions
                case LFUN_DELETE_LINE_FORWARD:
@@ -1072,12 +1072,12 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                                idx = nargs() - 1;
                        if (pos > cell(idx).size())
                                pos = cell(idx).size();
-                       return FINISHED;
+                       return DispatchResult(true, FINISHED);
 
                case LFUN_CELL_SPLIT:
                        //recordUndo(bv, Undo::ATOMIC);
                        splitCell(idx, pos);
-                       return FINISHED;
+                       return DispatchResult(true, FINISHED);
 
                case LFUN_BREAKLINE: {
                        //recordUndo(bv, Undo::INSERT);
@@ -1096,7 +1096,7 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                        pos = cell(idx).size();
 
                        //mathcursor->normalize();
-                       return FINISHED;
+                       return DispatchResult(true, FINISHED);
                }
 
                case LFUN_TABULAR_FEATURE: {
@@ -1151,9 +1151,9 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                        else if (s == "swap-column")
                                swapCol(col(idx));
                        else
-                               return UNDISPATCHED;
-                       lyxerr << "returning FINISHED" << endl;
-                       return FINISHED;
+                               return DispatchResult(false);
+                       lyxerr << "returning DispatchResult(true, FINISHED)" << endl;
+                       return DispatchResult(true, FINISHED);
                }
 
                case LFUN_PASTE: {
@@ -1184,7 +1184,7 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                                        for (col_type c = 0; c < grid.ncols(); ++c)
                                                cell(i).append(grid.cell(grid.index(r, c)));
                        }
-                       return FINISHED;
+                       return DispatchResult(true, FINISHED);
                }
 
                default: