summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-28 04:03:32 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-28 04:03:32 -0300
commit6662f6f5c1186256f5303081ae53c7d0dd8ee525 (patch)
tree5bf36fe120d4f7c989df84db2929dfb3d317551e /gui
parentf1f3f789852c4d0125d427f9d7ffb2ba97fcadbb (diff)
downloadeeshow-6662f6f5c1186256f5303081ae53c7d0dd8ee525.tar.gz
eeshow-6662f6f5c1186256f5303081ae53c7d0dd8ee525.tar.bz2
eeshow-6662f6f5c1186256f5303081ae53c7d0dd8ee525.zip
gui/gui.c: clarify that "sheet_eq" does more than compare a single sheet
Did fool myself there ...
Diffstat (limited to 'gui')
-rw-r--r--gui/gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/gui.c b/gui/gui.c
index d986f20..0e35e92 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -312,6 +312,11 @@ static const struct sheet *parse_files(struct gui_hist *hist,
file_close(&sch_file);
// @@@ close pro_file
+ /*
+ * sheet_eq recurses into sub-sheets, so we compare all sheets, even if
+ * it may look like it.
+ */
+
if (prev && prev->sheets &&
sheet_eq(prev->sch_ctx.sheets, hist->sch_ctx.sheets))
prev->identical = 1;