beremiz

324767a092dc
Parents 3756ae754713
Children e567e4bee11f
Fixed bug when pasting element with an odd width or height
--- a/PLCControler.py Mon Oct 14 14:59:15 2013 +0200
+++ b/PLCControler.py Wed Oct 16 11:36:22 2013 +0200
@@ -2386,7 +2386,7 @@
max(miny, round(new_pos[1] / scaling[1]) * scaling[1]))
else:
new_pos = (max(30, new_pos[0]), max(30, new_pos[1]))
- diff = (new_pos[0] - x, new_pos[1] - y)
+ diff = (int(new_pos[0] - x), int(new_pos[1] - y))
connections = {}
for instance in instances: