From 2f74a714a917dcba1a55808f039c6f80049254f1 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 18 Mar 2010 16:56:32 +0000 Subject: [PATCH] =?UTF-8?q?Patch=20level=20=20=20=20=20=20=20=20=20:=2010.?= =?UTF-8?q?0=20Files=20correlati=20=20=20=20=20:=20ve0.exe=20Ricompilazion?= =?UTF-8?q?e=20Demo=20:=20[=20]=20Commento=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20:=200001580:=20002268=20-=20Pharmatex-=20problema=20prezz?= =?UTF-8?q?i=20a=20zero=20Dal=20cliente=20succede=20che=20richiamando=20pe?= =?UTF-8?q?r=20esempio=20il=20documento=20NAC=202009=2051,=20i=20prezzi=20?= =?UTF-8?q?risultano=20a=200,=20tramite=20il=20bottone=20torno=20sul=20doc?= =?UTF-8?q?umento=2050,=20e=20va=20bene,=20il=2049=20invece=20fa=20vedere?= =?UTF-8?q?=20il=20prezzo=20a=200,=20facendo=20l'anteprima=20il=20prezzo?= =?UTF-8?q?=20viene=20visualizzato.=20Scorro=20in=20avanti=20ed=20il=20doc?= =?UTF-8?q?umento=2060=20ha=20lo=20stesso=20problema.=20Annullo=20e=20rich?= =?UTF-8?q?iamo=2060,=20prezzo=20a=20zero=20ed=20anteprima=20di=20stampa?= =?UTF-8?q?=20valorizzata.=20Torno=20al=20menu,=20rientro=20e=20richiamo?= =?UTF-8?q?=20il=20documento=2049,=20il=20prezzo=20c'=C3=A8;=20idem=20per?= =?UTF-8?q?=20il=2060.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.65.10.50/trunk@20243 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/msksheet.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/msksheet.cpp b/include/msksheet.cpp index 0024a61e0..89fd3b00c 100755 --- a/include/msksheet.cpp +++ b/include/msksheet.cpp @@ -1958,7 +1958,7 @@ void TSpreadsheet::select(int rec, int col, bool scrollto) _cur_col = find_enabled_column(rec, 1, +1); _cur_rec = rec; _cur_row = row; - _edit_field = _cur_col > 0 ? col2field(_cur_col) : NULL; + _edit_field = _cur_col > 0 ? test_field(_cur_col) : NULL; str2mask(_cur_rec); _row_dirty = false; @@ -2464,7 +2464,6 @@ bool TSpreadsheet::notify(int rec, KEY k) set_dirty(ok ? 1 : 3); _cell_dirty = cell_dirty; } - return ok; } @@ -2594,8 +2593,7 @@ TSheet_field::~TSheet_field() void TSheet_field::reset() { TSpreadsheet* s = (TSpreadsheet*)_ctl; - if (s->items()) - s->select(0, false); + // if (s->items()) s->select(0, false); // Non si capisce a cosa servisse dal 1996 s->destroy(); s->sheet_mask().reset(); set_dirty(); // Reset any error (dirty = 3)