Revision: 41142
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41142&view=rev
Author:   bob1961
Date:     2010-10-26 19:22:03 +0000 (Tue, 26 Oct 2010)

Log Message:
-----------
Modified Ged::begin_data_arrow and Ged::begin_data_line to validate dindex 
before using.

Modified Paths:
--------------
    brlcad/trunk/src/tclscripts/lib/Ged.tcl

Modified: brlcad/trunk/src/tclscripts/lib/Ged.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/lib/Ged.tcl     2010-10-26 19:14:16 UTC (rev 
41141)
+++ brlcad/trunk/src/tclscripts/lib/Ged.tcl     2010-10-26 19:22:03 UTC (rev 
41142)
@@ -2625,6 +2625,10 @@
     set dindex [llength $points]
     incr dindex -1
 
+    if {$dindex < 0} {
+       return
+    }
+
     # start receiving motion events
     bind $itk_component($_pane) <Motion> "[::itcl::code $this handle_data_move 
$_pane data_arrows $dindex %x %y]; break"
 }
@@ -2646,6 +2650,10 @@
     set dindex [llength $points]
     incr dindex -1
 
+    if {$dindex < 0} {
+       return
+    }
+
     # start receiving motion events
     bind $itk_component($_pane) <Motion> "[::itcl::code $this handle_data_move 
$_pane data_lines $dindex %x %y]; break"
 }


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

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to