summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-30 18:53:23 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-30 18:53:23 (GMT)
commit04028ddfd75b4a867ec1964db306dc22b7f2252d (patch)
treee56ee0f2b45ee9807824939e5f1cf39882379015 /kicad
parent14908ebcc9eb2d602627797360f099ed0dad8e99 (diff)
downloadeeshow-04028ddfd75b4a867ec1964db306dc22b7f2252d.zip
eeshow-04028ddfd75b4a867ec1964db306dc22b7f2252d.tar.gz
eeshow-04028ddfd75b4a867ec1964db306dc22b7f2252d.tar.bz2
Shift + R now toggles visibility of invisible component references
Such things should be rare in normal use of KiCad, but can occur when working with unusual designs.
Diffstat (limited to 'kicad')
-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);
}
}