From aa246a5e70e5f0407b44501188280feda2448996 Mon Sep 17 00:00:00 2001 From: bonazzi Date: Fri, 15 Sep 2017 18:39:40 +0000 Subject: [PATCH] Patch level : 12.0 438 Files correlati : ca0.exe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il campo tree con le commesse/fasi o centri di costo quando erano più di 2048 non veniva creato e in conseguenza veniva generato un errore quando il programma cercava di usarlo. git-svn-id: svn://10.65.10.50/branches/R_10_00@24090 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/ca/calib01.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/ca/calib01.cpp b/src/ca/calib01.cpp index e1a0506da..c01443dbd 100755 --- a/src/ca/calib01.cpp +++ b/src/ca/calib01.cpp @@ -1520,8 +1520,6 @@ int TSimple_anal_msk::compute_offset() const } TLocalisamfile lif(ln); const TRecnotype recs = lif.items(); - if (recs > 2048) // Niente alberi enormi ... per ora - delta = 0; } return delta; @@ -2111,15 +2109,18 @@ void TAnal_app::init_query_mode(TMask& mask) d.set_field(""); } - TToken_string keys(m.get_curr_key()); + if (m.id2pos(F_TREE) > 0) + { + TToken_string keys(m.get_curr_key()); - for (int j = 0 ; j < i - 1; j++) - { - const short id = m.get_field_id(j, 1); - TEdit_field& e = m.efield(id); + for (int j = 0 ; j < i - 1; j++) + { + const short id = m.get_field_id(j, 1); + TEdit_field& e = m.efield(id); - e.set(keys.get(j)); - } + e.set(keys.get(j)); + } + } m.first_focus(m.get_field_id(0, 1)); }