summaryrefslogtreecommitdiff
path: root/kicad/sch-render.c
diff options
context:
space:
mode:
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);
}