Skip to content

Commit c695c71

Browse files
committed
Bugfix to xmin/ymax/etc properties' movement for references introduce by _parse_move()
1 parent 19ed1cd commit c695c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phidl/device_layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,9 +1611,9 @@ def move(self, origin = (0,0), destination = None, axis = None):
16111611
for e in self.polygons:
16121612
e.translate(dx,dy)
16131613
for e in self.references:
1614-
e.move(destination = destination, origin = origin)
1614+
e.move((dx,dy))
16151615
for e in self.labels:
1616-
e.move(destination = destination, origin = origin)
1616+
e.move((dx,dy))
16171617
for p in self.ports.values():
16181618
p.midpoint = np.array(p.midpoint) + np.array((dx,dy))
16191619

0 commit comments

Comments
 (0)