From 153fc29d92f8bdc8de7ef0331b7b952ea3f252f9 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 29 Aug 1994 13:06:35 +0000 Subject: [PATCH] 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 --- include/msksheet.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/msksheet.cpp b/include/msksheet.cpp index 6795b8e04..d93b93df7 100755 --- a/include/msksheet.cpp +++ b/include/msksheet.cpp @@ -325,7 +325,7 @@ bool TSpreadsheet::destroy(int rec) enable_cell(_str.items(), -1); // Enable last line } - if (ok) xi_cell_request(_list); + if (ok) update(-1); return ok; } @@ -335,11 +335,11 @@ void TSpreadsheet::update(int row) { if (row < 0) { - xi_cell_request(_list); + xi_cell_request(_list); // Force updatde xi_scroll(_list, XI_SCROLL_FIRST); - // XI_OBJ* itf = xi_get_itf(win()); - // xi_move_focus(itf); - set_front_window(win()); + XI_OBJ* itf = xi_get_itf(win()); // Remove focus + xi_move_focus(itf); + set_front_window(win()); // Seems necessary } else update_rec(row);