From d5ede53a8fe291e5b444feeff610f0845b074532 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 15 Mar 2013 11:00:51 +0000 Subject: [PATCH] Migliorata gestione albero distinte in query mode git-svn-id: svn://10.65.10.50/branches/R_10_00@22824 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- db/db0500.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/db/db0500.cpp b/db/db0500.cpp index b7dc1d69c..d6d296eb1 100755 --- a/db/db0500.cpp +++ b/db/db0500.cpp @@ -649,6 +649,9 @@ bool TQuery_mask::copy_distinct(const TCodice_articolo& oldcode, bool TQuery_mask::restart_tree() { + TString id; + if (_tree.has_root()) + _tree.curr_id(id); if (!_tree.restart()) return false; int d =get_int(F_MIN_DEPTH); @@ -671,7 +674,7 @@ bool TQuery_mask::restart_tree() if (_tree.has_rbrother()) { _tree.goto_rbrother(); - dir = 1 ; + dir = 1; } else { @@ -680,6 +683,9 @@ bool TQuery_mask::restart_tree() } } while (_tree.curr_depth() > 0); + if (id.full()) + _tree.goto_node(id); + TTree_field& tf = tfield(F_TREE); tf.win().update_thumb(0, 0); tf.win().force_update();