]> git.lyx.org Git - lyx.git/blobdiff - src/dispatchresult.h
more cursor dispatch
[lyx.git] / src / dispatchresult.h
index 19aa2b979c44ec0564fad1bb5a0fe6c147f57090..70760b33d0b1f045b7915e93d990c38323922f43 100644 (file)
@@ -27,7 +27,7 @@
                        the inset.
        FINISHED_POP       = FINISHED, but move the cursor out the inset
                        (possibly more than one level)
-       UNDISPATCHED        = the action was not catched, it should be
+       UNDISPATCHED        = the action was not caught, it should be
                        dispatched by lower level insets
 */
 enum dispatch_result_t {
@@ -51,9 +51,9 @@ public:
        DispatchResult(bool dis)
                : dispatched_(dis), update_(false), val_(NONE) {}
        DispatchResult(bool dis, bool update)
-               : dispatched_(dis), update_(true), val_(NONE) {}
+               : dispatched_(dis), update_(update), val_(NONE) {}
        DispatchResult(bool dis, dispatch_result_t val)
-               : dispatched_(dis), update_(false), val_(val) {}
+               : dispatched_(dis), update_(true), val_(val) {}
        dispatch_result_t val() const { return val_; }
        void val(dispatch_result_t drt) {
                val_ = drt;