Sistemazione cagatelle sheet

git-svn-id: svn://10.65.10.50/trunk@1775 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1995-09-01 10:16:30 +00:00
parent e2d52247d0
commit e6a4caa2fa
2 changed files with 8 additions and 2 deletions

View File

@ -387,9 +387,13 @@ void TSpreadsheet::update_rec(int rec)
const int riga = rec2row(rec);
if (riga >= 0)
{
if (rec == selected())
xi_set_focus(_itf);
XI_OBJ row;
XI_MAKE_ROW(&row, _list, riga);
xi_cell_request(&row); // Update internal values
if (rec == selected()/* && _cur_col > 0*/)
set_focus_cell(riga, _cur_col);
}
}
@ -399,6 +403,8 @@ void TSpreadsheet::set_focus_cell(int riga, int colonna)
xvt_scr_set_focus_vobj(win());
const int r = row2rec(riga);
if (colonna <= 0) colonna = 1;
for (; colonna < _columns; colonna++)
if (!cell_disabled(r, colonna-1))
break;