|
From: <ma...@us...> - 2011-01-23 14:49:27
|
Revision: 268
http://openautomation.svn.sourceforge.net/openautomation/?rev=268&view=rev
Author: mayerch
Date: 2011-01-23 14:49:21 +0000 (Sun, 23 Jan 2011)
Log Message:
-----------
Bug fix: don't offer inport during connection making if that port is already connected...
Modified Paths:
--------------
PyWireGate/trunk/logic_editor/gle/gle.block.js
Modified: PyWireGate/trunk/logic_editor/gle/gle.block.js
===================================================================
--- PyWireGate/trunk/logic_editor/gle/gle.block.js 2011-01-22 20:57:24 UTC (rev 267)
+++ PyWireGate/trunk/logic_editor/gle/gle.block.js 2011-01-23 14:49:21 UTC (rev 268)
@@ -422,6 +422,8 @@
var smallestDistancePort = -1;
for( var i = 0; i < inPorts.length; i++ )
{
+ if( inPorts[i].connection ) continue;
+
var dist = distance( that.inPortPos(i)[0] );
if( dist < smallestDistance )
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|