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:
parent
fccd36794e
commit
e7c3a44389
@ -740,17 +740,18 @@ void TSpreadsheet::list_handler(XI_EVENT *xiev)
|
|||||||
{
|
{
|
||||||
const int col = cid - FIRST_FIELD;
|
const int col = cid - FIRST_FIELD;
|
||||||
TMask_field* f = field(cid);
|
TMask_field* f = field(cid);
|
||||||
const int acqua = f->class_id();
|
|
||||||
|
|
||||||
src = row(rec).get(col); // Set value for cell
|
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 (src && *src)
|
||||||
}
|
src = f->picture_data(src, FALSE); // Get formatted string
|
||||||
if (field(cid)->has_query())
|
if (f->has_query())
|
||||||
{
|
{
|
||||||
xiev->v.cell_request.button = TRUE;
|
xiev->v.cell_request.button = TRUE;
|
||||||
xiev->v.cell_request.button_on_focus = TRUE;
|
xiev->v.cell_request.button_on_focus = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (cell_disabled(rec, col))
|
if (cell_disabled(rec, col))
|
||||||
xiev->v.cell_request.back_color = DISABLED_BACK_COLOR;
|
xiev->v.cell_request.back_color = DISABLED_BACK_COLOR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user