From c12f5f34a6140a2c29f161c356c1e293bde853ff Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 20 Aug 2016 22:21:14 -0300 Subject: [PATCH] eeshow/kicad/delta.c (comp_eq_objs): rectangle comparison was very confused --- eeshow/kicad/delta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeshow/kicad/delta.c b/eeshow/kicad/delta.c index dc744ce..e0cedbc 100644 --- a/eeshow/kicad/delta.c +++ b/eeshow/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: