Revision: 41110
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41110&view=rev
Author:   bob1961
Date:     2010-10-19 17:32:28 +0000 (Tue, 19 Oct 2010)

Log Message:
-----------
Modified ArcherCore::updateTreeTopWithName to account for mPNode2CList() 
possibly not existing.

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

Modified: brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2010-10-19 17:17:05 UTC 
(rev 41109)
+++ brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2010-10-19 17:32:28 UTC 
(rev 41110)
@@ -4103,8 +4103,7 @@
     # Possibly add a toplevel node to the tree
     if {$i != -1} {
        # Add _name if not already there.
-       set j [lsearch -index 0 $mPNode2CList() $_name]
-       if {$j == -1} {
+       if {[catch {lsearch -index 0 $mPNode2CList() $_name} j] || $j == -1} {
            fillTree {} $_name $mEnableListView
        }
     } else {


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

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to