Gestita meglio la presenza di due sheet sulla stessa pagina
git-svn-id: svn://10.65.10.50/trunk@90 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
30ff8f5f11
commit
153fc29d92
@ -325,7 +325,7 @@ bool TSpreadsheet::destroy(int rec)
|
|||||||
enable_cell(_str.items(), -1); // Enable last line
|
enable_cell(_str.items(), -1); // Enable last line
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ok) xi_cell_request(_list);
|
if (ok) update(-1);
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
@ -335,11 +335,11 @@ void TSpreadsheet::update(int row)
|
|||||||
{
|
{
|
||||||
if (row < 0)
|
if (row < 0)
|
||||||
{
|
{
|
||||||
xi_cell_request(_list);
|
xi_cell_request(_list); // Force updatde
|
||||||
xi_scroll(_list, XI_SCROLL_FIRST);
|
xi_scroll(_list, XI_SCROLL_FIRST);
|
||||||
// XI_OBJ* itf = xi_get_itf(win());
|
XI_OBJ* itf = xi_get_itf(win()); // Remove focus
|
||||||
// xi_move_focus(itf);
|
xi_move_focus(itf);
|
||||||
set_front_window(win());
|
set_front_window(win()); // Seems necessary
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
update_rec(row);
|
update_rec(row);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user