summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 03:28:45 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-30 03:28:45 -0300
commite3aea192ee483678648797b091c9e863bbf7d9c8 (patch)
tree51a1b9895e503da0123830c571985568648d00a0 /gui/render.c
parentccb43979d970bc7ee26a4128e1e5b3882008ec63 (diff)
downloadeeshow-e3aea192ee483678648797b091c9e863bbf7d9c8.tar.gz
eeshow-e3aea192ee483678648797b091c9e863bbf7d9c8.tar.bz2
eeshow-e3aea192ee483678648797b091c9e863bbf7d9c8.zip
kicad/delta.c (sheet_eq): make recursing optional; don't recurse in index
In the index, we don't want to have pages marked because there's a page underneath that has changed. After all, that other page is being shown in the index as well. However, in all other cases we still want to recurse.
Diffstat (limited to 'gui/render.c')
-rw-r--r--gui/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/render.c b/gui/render.c
index 48003f5..ea17b8c 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -140,7 +140,7 @@ static struct area *changed_sheets(const struct gui *gui,
old_sub = find_corresponding_sheet(gui->old_hist->sheets,
gui->new_hist->sheets, new_sub);
- if (!sheet_eq(new_sub->sch, old_sub->sch))
+ if (!sheet_eq(new_sub->sch, old_sub->sch, 1))
add_area(&areas, cx(obj->x, xo, f), cy(obj->y, yo, f),
cx(obj->x + obj->u.sheet.w, xo, f),
cy(obj->y + obj->u.sheet.h, yo, f), 0xffff00);