1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 00:35:21 +02:00

eeshow/: field visibility in schematics completely overrides library

This commit is contained in:
Werner Almesberger 2016-08-14 10:55:22 -03:00
parent 88287cae35
commit 93b7269a3e
2 changed files with 10 additions and 1 deletions

View File

@ -120,8 +120,11 @@ static bool comp_eq(const struct comp *a, const struct comp *b)
return 0;
if (a->units != b->units)
return 0;
#if 0
/* @@@ in-sheet settings override this */
if (a->visible != b->visible)
return 0;
#endif
if (a->show_pin_name != b->show_pin_name)
return 0;
if (a->show_pin_num != b->show_pin_num)

View File

@ -115,7 +115,13 @@ static bool parse_field(struct sch_ctx *ctx, const char *line)
&hor, &vert, &italic, &bold) != 11)
return 0;
if (flags || (comp->comp && !lib_field_visible(comp->comp, n))) {
if (flags) {
/*
* @@@ visibility settings in component only seem to be used only as default
* for sheet and are ignored thereafter:
*
* || (comp->comp && !lib_field_visible(comp->comp, n))) {
*/
free((char *) txt->s);
free(field);
return 1;