summaryrefslogtreecommitdiff
path: root/kicad/delta.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 22:21:14 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 22:21:14 -0300
commitfdaee8a821a3853174506b00acfb48555599a86b (patch)
tree6903ba0aae0f047a9e6db2ae3e563e6ad40774f4 /kicad/delta.c
parent66b2c09b0c487009fb2e3abd86764658c129e4ef (diff)
downloadeeshow-fdaee8a821a3853174506b00acfb48555599a86b.tar.gz
eeshow-fdaee8a821a3853174506b00acfb48555599a86b.tar.bz2
eeshow-fdaee8a821a3853174506b00acfb48555599a86b.zip
eeshow/kicad/delta.c (comp_eq_objs): rectangle comparison was very confused
Diffstat (limited to 'kicad/delta.c')
-rw-r--r--kicad/delta.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kicad/delta.c b/kicad/delta.c
index dc744ce..e0cedbc 100644
--- a/kicad/delta.c
+++ b/kicad/delta.c
@@ -63,7 +63,9 @@ static bool comp_eq_objs(const struct lib_obj *a, const struct lib_obj *b)
return 1;
case lib_obj_rect:
return a->u.rect.sx == b->u.rect.sx &&
- a->u.rect.ex == a->u.rect.ey &&
+ a->u.rect.sy == b->u.rect.sy &&
+ a->u.rect.ex == b->u.rect.ex &&
+ a->u.rect.ey == b->u.rect.ey &&
a->u.rect.thick == b->u.rect.thick &&
a->u.rect.fill == b->u.rect.fill;
case lib_obj_circ: