Patch level : 12.0 nopatch

Files correlati     :
This commit is contained in:
Alessandro Bonazzi 2021-04-21 16:56:29 +02:00
parent 937e4f1f0c
commit b3cc2229a8

View File

@ -209,16 +209,12 @@ bool TGestAutoTrasp_mask::on_field_event(TOperable_field& o, TField_event e, lon
if (e == fe_close) // Controllo sulla presenza dei codici causale nello spreadsheet
{
TSheet_field& sf = sfield(F_SHEET_CAUSALI);
bool error = TRUE;
for (int i=0; i < sf.items(); i++)
bool error = true;
for (int i = 0; error && i < sf.items(); i++)
{
TToken_string& tt = sf.row(i);
const TString16 c = tt.get(F_CAUDEF - F_CAUMOV);
if (!c.blank())
{
error = FALSE;
break;
}
const TString16 c = sf.get_str_row_cell(i, F_CAUDEF);
error = c.blank();
}
if (error)
{