diff --git a/src/cairo-bentley-ottmann.c b/src/cairo-bentley-ottmann.c index 204b92590..4c551f632 100644 --- a/src/cairo-bentley-ottmann.c +++ b/src/cairo-bentley-ottmann.c @@ -1275,6 +1275,7 @@ _cairo_bentley_ottmann_tessellate_bo_edges (cairo_bo_edge_t *edges, status = _cairo_bo_event_queue_init (&event_queue, edges, num_edges); if (status) return status; + _cairo_bo_sweep_line_init (&sweep_line); _cairo_bo_traps_init (&bo_traps, traps, xmin, ymin, xmax, ymax); diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c index 3db353152..a8f88df13 100644 --- a/src/cairo-type1-fallback.c +++ b/src/cairo-type1-fallback.c @@ -643,6 +643,7 @@ cairo_type1_font_write (cairo_type1_font_t *font, status = cairo_type1_font_write_header (font, name); if (status) return status; + font->header_size = _cairo_output_stream_get_position (font->output); status = cairo_type1_font_write_private_dict (font, name);