Cancellata riga inutilizzata acqua = f->class_id() e migliorata catena di if

git-svn-id: svn://10.65.10.50/trunk@1916 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-10-02 11:09:12 +00:00
parent fccd36794e
commit e7c3a44389

View File

@ -740,18 +740,19 @@ void TSpreadsheet::list_handler(XI_EVENT *xiev)
{
const int col = cid - FIRST_FIELD;
TMask_field* f = field(cid);
const int acqua = f->class_id();
src = row(rec).get(col); // Set value for cell
if (src && *src && f->is_edit())
if (f->is_edit())
{
src = f->picture_data(src, FALSE); // Get formatted string
}
if (field(cid)->has_query())
{
xiev->v.cell_request.button = TRUE;
xiev->v.cell_request.button_on_focus = TRUE;
}
if (src && *src)
src = f->picture_data(src, FALSE); // Get formatted string
if (f->has_query())
{
xiev->v.cell_request.button = TRUE;
xiev->v.cell_request.button_on_focus = TRUE;
}
}
if (cell_disabled(rec, col))
xiev->v.cell_request.back_color = DISABLED_BACK_COLOR;
}