Patch level : 10.0 504
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento corretta selezione documento nelle elaborazioni interattive git-svn-id: svn://10.65.10.50/trunk@19584 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
32ae42b762
commit
9e0e00939b
@ -2145,11 +2145,9 @@ void TDocument_tree::select_node(const TObject* node, bool on)
|
||||
bool find_doc(TTree& tree, void* jolly, word flags)
|
||||
{
|
||||
TDocument_tree & t = (TDocument_tree &) tree;
|
||||
if (!t.node_selected())
|
||||
if (!t.node_selected() && t.testata().get_long(DOC_NDOC) == *((long *) jolly))
|
||||
{
|
||||
t.select_node();
|
||||
real & val = *((real *) jolly);
|
||||
val = t.totale_doc();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@ -2160,7 +2158,8 @@ real TDocument_tree::select_doc(long numdoc)
|
||||
{
|
||||
real val;
|
||||
if (goto_root())
|
||||
scan_depth_first(find_doc, (void *) &val, SCAN_PRE_ORDER | SCAN_IGNORING_LEAVES);
|
||||
if (scan_depth_first(find_doc, (void *) &numdoc, SCAN_PRE_ORDER | SCAN_IGNORING_LEAVES))
|
||||
val = totale_doc();
|
||||
return val;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user