Revision: 37497
          http://brlcad.svn.sourceforge.net/brlcad/?rev=37497&view=rev
Author:   bob1961
Date:     2010-01-29 22:51:22 +0000 (Fri, 29 Jan 2010)

Log Message:
-----------
Fixed two misuses/typos of lsearch in the cmd method.

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-01-29 22:48:06 UTC 
(rev 37496)
+++ brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2010-01-29 22:51:22 UTC 
(rev 37497)
@@ -2028,11 +2028,11 @@
            function {
                if {[llength $args] == 3} {
                    set subcmd [lindex $args 2]
-                   if {[lsearch $subcmd $mArcherCoreCommands] == -1 &&
-                       [lsearch $subcmd $mUnwrappedDbCommands] == -1} {
+                   if {[lsearch $mArcherCoreCommands $subcmd] == -1 &&
+                       [lsearch $mUnwrappedDbCommands $subcmd] == -1} {
                        error "ArcherCore::cmd: unrecognized command - $subcmd"
                    } else {
-                       return
+                       return $subcmd
                    }
                } else {
                    return [eval list $mArcherCoreCommands 
$mUnwrappedDbCommands]


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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to