From ada12b32fd28adbc8211723224f1fb9e6e878699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Cicho=C5=84?= Date: Fri, 8 Mar 2024 06:56:17 +0100 Subject: [PATCH] dsn: fix import bug misplacing shapes --- src/dsn/design.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dsn/design.rs b/src/dsn/design.rs index 46f9580..50196c2 100644 --- a/src/dsn/design.rs +++ b/src/dsn/design.rs @@ -88,7 +88,10 @@ impl DsnDesign { match &padstack.shape_vec[0] { Shape::Circle(circle) => { let circle = Circle { - pos: (place.x as f64 / 100.0, -place.y as f64 / 100.0).into(), + pos: ( + (place.x + pin.x) as f64 / 100.0, + -(place.y + pin.y) as f64 / 100.0 + ).into(), r: circle.diameter as f64 / 200.0, };