From 9e0e00939b5d00f2f7a37772699723d6277508ce Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 6 Nov 2009 08:14:46 +0000 Subject: [PATCH] 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 --- ve/velib06.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ve/velib06.cpp b/ve/velib06.cpp index b17da0946..78c76668c 100755 --- a/ve/velib06.cpp +++ b/ve/velib06.cpp @@ -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; }