From 531634b55a6fb2816d96aeaa4193fb2674bcb11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Wed, 27 Feb 2019 21:42:54 +0100 Subject: [PATCH] Fix bug in bounding box 2d translation --- trigonometric/cell-trigonometrics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trigonometric/cell-trigonometrics.c b/trigonometric/cell-trigonometrics.c index 4466bc7..823a531 100644 --- a/trigonometric/cell-trigonometrics.c +++ b/trigonometric/cell-trigonometrics.c @@ -105,8 +105,8 @@ void calculate_cell_bounding_box(union bounding_box *box, struct gds_cell *cell) /* Move bounding box to origin */ temp_box.vectors.lower_left.x += sub_cell->origin.x; - temp_box.vectors.lower_left.x += sub_cell->origin.x; - temp_box.vectors.upper_right.y += sub_cell->origin.y; + temp_box.vectors.upper_right.x += sub_cell->origin.x; + temp_box.vectors.lower_left.y += sub_cell->origin.y; temp_box.vectors.upper_right.y += sub_cell->origin.y; /* update the parent's box */