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.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index 830c99a..fdb945d 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -122,9 +122,17 @@ static void render_comp(const struct sch_comp *comp, struct gfx *gfx)
const struct comp_field *field;
lib_render(comp->comp, gfx, comp->unit, comp->convert, comp->m);
- for (field = comp->fields; field; field = field->next)
- if (field->visible)
+ for (field = comp->fields; field; field = field->next) {
+ if (field->visible) {
dump_field(field, gfx, comp->m);
+ } else {
+ if (field->n == 2) {
+ gfx_set_extra(gfx, gfx_footprint);
+ dump_field(field, gfx, comp->m);
+ gfx_set_extra(gfx, 0);
+ }
+ }
+ }
}