# HG changeset patch # User Laurent Bessard # Date 1381916182 -7200 # Node ID 324767a092dc0449f99385a28837594edc5183aa # Parent 3756ae7547136c83b6a87ec8e9d2356eec1a9666 Fixed bug when pasting element with an odd width or height diff -r 3756ae754713 -r 324767a092dc PLCControler.py --- 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: