summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2017-05-07 01:00:05 (GMT)
committerWerner Almesberger <werner@almesberger.net>2017-05-07 01:00:05 (GMT)
commited41bda88f10633acec74e5d4d1123eb8d580fc9 (patch)
tree6a4b3635a676c8b095100023905f43e49c0b8204
parentf405999fbaf5615f55f68adc3396566a66b562d7 (diff)
downloadeeshow-ed41bda88f10633acec74e5d4d1123eb8d580fc9.zip
eeshow-ed41bda88f10633acec74e5d4d1123eb8d580fc9.tar.gz
eeshow-ed41bda88f10633acec74e5d4d1123eb8d580fc9.tar.bz2
gui/comp.c (add_comp_aoi): ignore documentation fields that just say "~"
~ is sometimes used as placeholder for "empty".
-rw-r--r--gui/comp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/comp.c b/gui/comp.c
index 3a9cb25..2075ca5 100644
--- a/gui/comp.c
+++ b/gui/comp.c
@@ -246,7 +246,8 @@ void add_comp_aoi(struct gui_sheet *sheet, const struct sch_obj *obj)
ctx->ref = f->txt.s;
break;
case 3:
- ctx->doc = f->txt.s;
+ if (strcmp(f->txt.s, "~"))
+ ctx->doc = f->txt.s;
break;
default:
break;