Bug on block negated pin fixed
authorlbessard
Tue, 26 Feb 2008 15:10:58 +0100
changeset 169 393193e7590a
parent 168 fb500cc79164
child 170 5068ba721506
Bug on block negated pin fixed
Viewer.py
--- a/Viewer.py	Tue Feb 26 15:09:55 2008 +0100
+++ b/Viewer.py	Tue Feb 26 15:10:58 2008 +0100
@@ -764,14 +764,14 @@
                 connector.SetPosition(wx.Point(*input_connector["position"]))
                 if input_connector["negated"]:
                     connector.SetNegated(True)
-                if input_connector["edge"]:
+                if input_connector["edge"] != "none":
                     connector.SetEdge(input_connector["edge"])
                 self.CreateWires(connector, input_connector["links"], ids)
             for i, output_connector in enumerate(instance["connectors"]["outputs"]):
                 connector = connectors["outputs"][i]
                 if output_connector["negated"]:
                     connector.SetNegated(True)
-                if output_connector["edge"]:
+                if output_connector["edge"] != "none":
                     connector.SetEdge(output_connector["edge"])
                 connector.SetPosition(wx.Point(*output_connector["position"]))