summaryrefslogtreecommitdiff
path: root/kicad/sch-render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-29 12:58:30 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-29 12:58:30 -0300
commitd6abf64c0aab528f732e99e266db2e645cfdde8e (patch)
treed98bd8fd8023a2435bd0102df3d6c791de955904 /kicad/sch-render.c
parent766c52e7a582996fba1a89b4c15f6d74a1974c05 (diff)
downloadeeshow-d6abf64c0aab528f732e99e266db2e645cfdde8e.tar.gz
eeshow-d6abf64c0aab528f732e99e266db2e645cfdde8e.tar.bz2
eeshow-d6abf64c0aab528f732e99e266db2e645cfdde8e.zip
kicad/: don't discard invisible fields, just mark them; also record field number
Diffstat (limited to 'kicad/sch-render.c')
-rw-r--r--kicad/sch-render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index 2a4a9a0..81a97e4 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -11,6 +11,7 @@
*/
+#include <stdbool.h>
#include <stdio.h>
#include <assert.h>
@@ -122,7 +123,8 @@ static void render_comp(const struct sch_comp *comp, struct gfx *gfx)
lib_render(comp->comp, gfx, comp->unit, comp->convert, comp->m);
for (field = comp->fields; field; field = field->next)
- dump_field(field, gfx, comp->m);
+ if (field->visible)
+ dump_field(field, gfx, comp->m);
}