From ff7c767c4d1c9b0d42b523723f2d1cca8f005504 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 9 Jan 2025 00:31:11 +0100 Subject: [PATCH] propagate drawing graph Hcursor functions to SVG/PDF exports --- src/draw.c | 2 +- src/psprint.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/draw.c b/src/draw.c index 31015f93..6693b3e4 100644 --- a/src/draw.c +++ b/src/draw.c @@ -4803,7 +4803,7 @@ void svg_embedded_graph(FILE *fd, xRect *r, double rx1, double ry1, double rx2, xRect *r = &xctx->rect[GRIDLAYER][i]; if(r->flags & 1) { setup_graph_data(i, 0, &xctx->graph_struct); - draw_graph(i, 8, &xctx->graph_struct, (void *)ct); + draw_graph(i, 8 + (xctx->graph_flags & (4 | 2 | 128 | 256)), &xctx->graph_struct, (void *)ct); } } #endif diff --git a/src/psprint.c b/src/psprint.c index 00393055..c944ec7d 100644 --- a/src/psprint.c +++ b/src/psprint.c @@ -341,7 +341,7 @@ static int ps_embedded_graph(xRect* r, double rx1, double ry1, double rx2, doubl xRect* r2 = &xctx->rect[GRIDLAYER][i]; if (r2->flags & 1) { setup_graph_data(i, 0, &xctx->graph_struct); - draw_graph(i, 8, &xctx->graph_struct, (void*)ct); + draw_graph(i, 8 + (xctx->graph_flags & (4 | 2 | 128 | 256)), &xctx->graph_struct, (void *)ct); } } #endif