1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-08-24 21:31:28 +03:00

sch2fig/lib.c (lib_parse): zero2 seems to be text style, ignore

This commit is contained in:
Werner Almesberger 2016-07-26 18:35:14 -03:00
parent 4d75a7f00e
commit 47707d700c

View File

@ -620,10 +620,13 @@ bool lib_parse(struct lib_ctx *ctx, const char *line)
*tilde = ' '; *tilde = ' ';
} }
} }
/*
* zero2 seems to be the font style: 0 = normal, 1 = bold ?
*/
if (n == 12) { if (n == 12) {
if (zero1 || zero2) { if (zero1) {
fprintf(stderr, "%u: only understand 0 x x\n", fprintf(stderr, "%u: only understand 0 x x\n"
ctx->lineno); "\"%s\"\n", ctx->lineno, line);
exit(1); exit(1);
} }
obj->u.text.style = decode_style(style); obj->u.text.style = decode_style(style);