From 3ec91ab32293d55526e4f1a7b848d8e69841e7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Tue, 20 Aug 2019 19:01:03 +0200 Subject: [PATCH] Cairo Renderer: Fix bug introduced in 3ffd63115f339bbf623121a5fbe3f2d7c360c103 due to the introduction of the LayerSettings class --- output-renderers/cairo-renderer.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/output-renderers/cairo-renderer.c b/output-renderers/cairo-renderer.c index 8755538..06b8361 100644 --- a/output-renderers/cairo-renderer.c +++ b/output-renderers/cairo-renderer.c @@ -220,7 +220,10 @@ static int cairo_renderer_render_cell_to_vector_file(struct gds_cell *cell, GLis * * And by the way: This now bricks all Windows compatibility. Deal with it. */ + + /* Use fork for production code and -1 as value for debugging */ process_id = fork(); + //process_id = -1; if (process_id < 0) { /* Well... shit... We have to run it in our process. */ } else if (process_id > 0) { @@ -239,7 +242,11 @@ static int cairo_renderer_render_cell_to_vector_file(struct gds_cell *cell, GLis /* Create recording surface for each layer */ for (info_list = layer_infos; info_list != NULL; info_list = g_list_next(info_list)) { linfo = (struct layer_info *)info_list->data; - if (linfo->layer < MAX_LAYERS && linfo->render) { + if (linfo->layer < MAX_LAYERS) { + /* Layer shall not be rendered */ + if (!linfo->render) + continue; + lay = &(layers[(unsigned int)linfo->layer]); lay->linfo = linfo; lay->rec = cairo_recording_surface_create(CAIRO_CONTENT_COLOR_ALPHA,