dsn: fix import bug misplacing shapes

This commit is contained in:
Tomasz Cichoń 2024-03-08 06:56:17 +01:00
parent 137026301c
commit ada12b32fd
1 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,10 @@ impl DsnDesign {
match &padstack.shape_vec[0] { match &padstack.shape_vec[0] {
Shape::Circle(circle) => { Shape::Circle(circle) => {
let 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, r: circle.diameter as f64 / 200.0,
}; };