Revision: 41620
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41620&view=rev
Author:   davidloman
Date:     2010-12-15 17:40:09 +0000 (Wed, 15 Dec 2010)

Log Message:
-----------
Fixed an index checking bug.

Modified Paths:
--------------
    rt^3/trunk/src/GS/AccountManager.cxx

Modified: rt^3/trunk/src/GS/AccountManager.cxx
===================================================================
--- rt^3/trunk/src/GS/AccountManager.cxx        2010-12-15 17:18:58 UTC (rev 
41619)
+++ rt^3/trunk/src/GS/AccountManager.cxx        2010-12-15 17:40:09 UTC (rev 
41620)
@@ -111,7 +111,8 @@
        //check to see if its already cached.
        this->accountListLock.lock();
     int index = this->accounts->indexOf(a);
-    if (a>=0) {
+
+    if (index >= 0) {
        a = this->accounts->at(index);
     }
     this->accountListLock.unlock();


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

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to