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
This commit is contained in:
parent
6b910cdbe0
commit
d5ede53a8f
@ -649,6 +649,9 @@ bool TQuery_mask::copy_distinct(const TCodice_articolo& oldcode,
|
|||||||
|
|
||||||
bool TQuery_mask::restart_tree()
|
bool TQuery_mask::restart_tree()
|
||||||
{
|
{
|
||||||
|
TString id;
|
||||||
|
if (_tree.has_root())
|
||||||
|
_tree.curr_id(id);
|
||||||
if (!_tree.restart())
|
if (!_tree.restart())
|
||||||
return false;
|
return false;
|
||||||
int d =get_int(F_MIN_DEPTH);
|
int d =get_int(F_MIN_DEPTH);
|
||||||
@ -671,7 +674,7 @@ bool TQuery_mask::restart_tree()
|
|||||||
if (_tree.has_rbrother())
|
if (_tree.has_rbrother())
|
||||||
{
|
{
|
||||||
_tree.goto_rbrother();
|
_tree.goto_rbrother();
|
||||||
dir = 1 ;
|
dir = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -680,6 +683,9 @@ bool TQuery_mask::restart_tree()
|
|||||||
}
|
}
|
||||||
} while (_tree.curr_depth() > 0);
|
} while (_tree.curr_depth() > 0);
|
||||||
|
|
||||||
|
if (id.full())
|
||||||
|
_tree.goto_node(id);
|
||||||
|
|
||||||
TTree_field& tf = tfield(F_TREE);
|
TTree_field& tf = tfield(F_TREE);
|
||||||
tf.win().update_thumb(0, 0);
|
tf.win().update_thumb(0, 0);
|
||||||
tf.win().force_update();
|
tf.win().force_update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user