label-freetype: Initialize line dimensions to 0

Now that we can print the line dimensions, we should
initialize them to zero.
This commit is contained in:
Ray Strode 2023-12-29 09:16:59 -05:00
parent 84c2ca7c7f
commit 69c821494a

View file

@ -537,6 +537,8 @@ load_glyphs (ply_label_plugin_control_t *label,
line_dimensions = alloca (sizeof(ply_rectangle_t));
line_dimensions->x = label->area.x;
line_dimensions->y = label->area.y;
line_dimensions->width = 0;
line_dimensions->height = 0;
label->area.width = 0;
label->area.height = 0;
} else if (ply_array_get_size (label->dimensions_of_lines) == 0) {