summaryrefslogtreecommitdiff
path: root/kicad/sch-render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-26 01:15:57 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-26 01:40:30 -0300
commitdfd916f49f4552be1d1dc44c6e0dc925a50c4c3f (patch)
tree6de8be6c10ae905eb9b8d8279a321f1632370adb /kicad/sch-render.c
parentae518b0432c49abb21229f632020f54a2b159903 (diff)
downloadeeshow-dfd916f49f4552be1d1dc44c6e0dc925a50c4c3f.tar.gz
eeshow-dfd916f49f4552be1d1dc44c6e0dc925a50c4c3f.tar.bz2
eeshow-dfd916f49f4552be1d1dc44c6e0dc925a50c4c3f.zip
kicad/: always initialize struct text.style
Diffstat (limited to 'kicad/sch-render.c')
-rw-r--r--kicad/sch-render.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index 55670fc..48015f6 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -74,23 +74,25 @@ static void do_hsheet_text(const struct sch_obj *obj,
assert(sheet->name && sheet->file);
struct text sheet_txt = {
- .size = sheet->name_dim,
- .x = obj->x,
- .y = obj->y,
- .rot = 0,
- .hor = text_min,
- .vert = text_min,
+ .size = sheet->name_dim,
+ .x = obj->x,
+ .y = obj->y,
+ .rot = 0,
+ .hor = text_min,
+ .vert = text_min,
+ .style = text_normal,
};
if (asprintf(&s, "Sheet: %s", sheet->name)) {}
sheet_txt.s = s; /* work around "const" mismatch */
struct text file_txt = {
- .size = sheet->file_dim,
- .x = obj->x,
- .y = obj->y,
- .rot = 0,
- .hor = text_min,
- .vert = text_max,
+ .size = sheet->file_dim,
+ .x = obj->x,
+ .y = obj->y,
+ .rot = 0,
+ .hor = text_min,
+ .vert = text_max,
+ .style = text_normal,
};
if (asprintf(&s, "File: %s", sheet->file)) {}
file_txt.s = s; /* work around "const" mismatch */