mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 16:01:31 +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:
parent
dd952eabf1
commit
bbfa7c573a
@ -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) {
|
&obj->x, &obj->y, &text->dir, &text->dim) == 4) {
|
||||||
ctx->state = sch_text;
|
ctx->state = sch_text;
|
||||||
obj->u.text.fn = dwg_text;
|
obj->u.text.fn = dwg_text;
|
||||||
|
obj->u.text.shape = dwg_unspec; /* not used for text */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (sscanf(line, "Text GLabel %d %d %d %d %ms",
|
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) {
|
&obj->x, &obj->y, &text->dir, &text->dim) == 4) {
|
||||||
ctx->state = sch_text;
|
ctx->state = sch_text;
|
||||||
obj->u.text.fn = dwg_label;
|
obj->u.text.fn = dwg_label;
|
||||||
|
obj->u.text.shape = dwg_unspec;
|
||||||
|
/* not used for (local) labels */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user