diff --git a/include/sheet.cpp b/include/sheet.cpp index d7e687b36..dc8655729 100755 --- a/include/sheet.cpp +++ b/include/sheet.cpp @@ -617,8 +617,9 @@ bool TSheet_control::event_handler(XI_OBJ* itf, XI_EVENT *xiev) const long rec = row2rec(row); const short cid = column[col]->cid; if (cid >= FIRST_FIELD) - { - toggle(rec); + { + if (check_enabled()) + toggle(rec); // XI_OBJ cell; XI_MAKE_CELL(&cell, _obj, row, col); // xi_cell_request(&cell); } @@ -876,7 +877,8 @@ bool TSheet::tutti_handler(TMask_field& f, KEY k) if (k == K_SPACE) { TSheet& s = (TSheet&)f.mask(); - s.check(-1, !s.one_checked()); + if (s.check_enabled()) + s.check(-1, !s.one_checked()); } return TRUE; }