--- a/graphics/FBD_Objects.py Wed Jan 25 01:26:29 2012 +0100
+++ b/graphics/FBD_Objects.py Mon Jan 30 16:12:19 2012 +0100
@@ -160,11 +160,11 @@
# Returns the block connector that starts with the point given if it exists
def GetConnector(self, position, name = None):
# if a name is given
- if name:
+ if name is not None:
# Test each input and output connector
- for input in self.Inputs:
- if name == input.GetName():
- return input
+ #for input in self.Inputs:
+ # if name == input.GetName():
+ # return input
for output in self.Outputs:
if name == output.GetName():
return output
@@ -583,10 +583,10 @@
# Returns the block connector that starts with the point given if it exists
def GetConnector(self, position, name = None):
# if a name is given
- if name:
+ if name is not None:
# Test input and output connector if they exists
- if self.Input and name == self.Input.GetName():
- return self.Input
+ #if self.Input and name == self.Input.GetName():
+ # return self.Input
if self.Output and name == self.Output.GetName():
return self.Output
connectors = []