|
From: <ma...@us...> - 2011-01-20 21:01:28
|
Revision: 261
http://openautomation.svn.sourceforge.net/openautomation/?rev=261&view=rev
Author: mayerch
Date: 2011-01-20 21:01:22 +0000 (Thu, 20 Jan 2011)
Log Message:
-----------
Fix broken firstMove.
Modified Paths:
--------------
PyWireGate/trunk/logic_editor/gle/gle.connection.js
Modified: PyWireGate/trunk/logic_editor/gle/gle.connection.js
===================================================================
--- PyWireGate/trunk/logic_editor/gle/gle.connection.js 2011-01-16 21:31:13 UTC (rev 260)
+++ PyWireGate/trunk/logic_editor/gle/gle.connection.js 2011-01-20 21:01:22 UTC (rev 261)
@@ -157,6 +157,7 @@
this.firstMove = function( pos )
{
+ pos = [ pos.x, pos.y ]; // convert
if( Math.abs( paths[0].path[0][1] - paths[0].path[1][1] ) < 1.0 ) // keep horizontal line
{
paths[0].path[0] = pos;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|