Patch level : 10.0 320

Files correlati     : VE0.exe
Ricompilazione Demo : [ ]
Commento



Ciorretto il cambio tipo riga al volo


git-svn-id: svn://10.65.10.50/trunk@18957 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2009-05-28 13:57:51 +00:00
parent 366a0b4050
commit 73162f3c42

View File

@ -573,28 +573,24 @@ bool tipo_riga_handler(TMask_field& f, KEY key)
{
const int curr_row = sf->selected();
TToken_string & row = sf->row(curr_row);
const int col = sf->cid2index(FR_TIPORIGA);
const TString16 old_tipo_riga = row.get(col);
const TString16 old_tipo_riga = docmask.doc()[curr_row + 1].get(RDOC_TIPORIGA);
const TString16 tipo_riga = f.get();
if (!row_mask.is_running())
if (old_tipo_riga != tipo_riga)
{
if (old_tipo_riga != tipo_riga)
if (!row_mask.is_running())
{
row.add(tipo_riga, col);
docmask.doc()[curr_row + 1].set_tipo(tipo_riga);
TMask * rm = docmask.riga_mask(curr_row);
sf->post_insert(curr_row);
sf->check_row(curr_row);
sf->force_update(curr_row);
}
}
else
if (old_tipo_riga != tipo_riga)
else
{
f.set(old_tipo_riga);
return error_box("Impossibile cambiare il tipo nella maschera di riga");
return f.error_box("Impossibile cambiare il tipo nella maschera di riga");
}
}
}
}
}