Corretta insert

git-svn-id: svn://10.65.10.50/trunk@1270 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-04-19 12:23:50 +00:00
parent 3f5b466e06
commit 0530040060

View File

@ -421,11 +421,16 @@ void TSpreadsheet::set_focus_cell(int riga, int colonna)
int TSpreadsheet::insert(int rec)
{
const bool ok = notify(rec, K_INS);
if (!ok) return -1;
const int r = _str.insert(new TToken_string(80), rec);
const bool ok = notify(r, K_INS);
if (!ok)
{
_str.destroy(r);
return -1;
}
TToken_string s(80); // Empty row
const int r = _str.insert(s, rec);
_disabled.insert(NULL, rec);
xi_insert_row(_list, INT_MAX);