Revision: 34365
          http://brlcad.svn.sourceforge.net/brlcad/?rev=34365&view=rev
Author:   bob1961
Date:     2009-04-29 20:10:33 +0000 (Wed, 29 Apr 2009)

Log Message:
-----------
Catch calls to toggleTreePath to so that mRestoringTree gets set back to 0.

Modified Paths:
--------------
    brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl

Modified: brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2009-04-29 18:05:15 UTC 
(rev 34364)
+++ brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2009-04-29 20:10:33 UTC 
(rev 34365)
@@ -2313,14 +2313,18 @@
 
     if {$restore == 1} {
        set mRestoringTree 1
-       # set the open state of nodes
-       foreach path $paths {
-           toggleTreePath $path
+
+       catch {
+           # set the open state of nodes
+           foreach path $paths {
+               toggleTreePath $path
+           }
+
+           if {$selNodePath != ""} {
+               toggleTreePath $selNodePath
+           }
        }
 
-       if {$selNodePath != ""} {
-           toggleTreePath $selNodePath
-       }
        set mRestoringTree 0
     }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to