From 8f527d27dabbbeec1da9762746f5b4a06fe774ba Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 27 May 1996 11:18:43 +0000 Subject: [PATCH] Corretta gestione ceccamento git-svn-id: svn://10.65.10.50/trunk@2912 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/sheet.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; }