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