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.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index fdb945d..37633e5 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -123,15 +123,16 @@ 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) {
- if (field->visible) {
- dump_field(field, gfx, comp->m);
- } else {
- if (field->n == 2) {
+ if (!field->visible) {
+ if (field->n == 0)
+ gfx_set_extra(gfx, gfx_reference);
+ else if (field->n == 2)
gfx_set_extra(gfx, gfx_footprint);
- dump_field(field, gfx, comp->m);
- gfx_set_extra(gfx, 0);
- }
+ else
+ continue;
}
+ dump_field(field, gfx, comp->m);
+ gfx_set_extra(gfx, 0);
}
}