1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-05 03:08:05 +02:00

eeshow/sch-parse.c (parse_line): always initialize u.text.shape

Even for text and (local) labels, which use no shape attribute.
This commit is contained in:
Werner Almesberger 2016-08-14 10:11:35 -03:00
parent dd952eabf1
commit bbfa7c573a

View File

@ -375,6 +375,7 @@ static bool parse_line(const struct file *file, void *user, const char *line)
&obj->x, &obj->y, &text->dir, &text->dim) == 4) {
ctx->state = sch_text;
obj->u.text.fn = dwg_text;
obj->u.text.shape = dwg_unspec; /* not used for text */
return 1;
}
if (sscanf(line, "Text GLabel %d %d %d %d %ms",
@ -395,6 +396,8 @@ static bool parse_line(const struct file *file, void *user, const char *line)
&obj->x, &obj->y, &text->dir, &text->dim) == 4) {
ctx->state = sch_text;
obj->u.text.fn = dwg_label;
obj->u.text.shape = dwg_unspec;
/* not used for (local) labels */
return 1;
}