fix line width in ps/pdf and svg exports (graph bitmaps are scaled up in size and so must be line widths)
This commit is contained in:
parent
18afca425e
commit
a547cf4e75
|
|
@ -5224,6 +5224,7 @@ void svg_embedded_graph(FILE *fd, int i, double rx1, double ry1, double rx2, dou
|
||||||
rwi = (int) (rw * scale + 1.0);
|
rwi = (int) (rw * scale + 1.0);
|
||||||
rhi = (int) (rh * scale + 1.0);
|
rhi = (int) (rh * scale + 1.0);
|
||||||
save_restore_zoom(1, &zi);
|
save_restore_zoom(1, &zi);
|
||||||
|
xctx->lw *= scale;
|
||||||
set_viewport_size(rwi, rhi, xctx->lw);
|
set_viewport_size(rwi, rhi, xctx->lw);
|
||||||
|
|
||||||
/* zoom_box(rx1 - xctx->lw, ry1 - xctx->lw, rx2 + xctx->lw, ry2 + xctx->lw, 1.0); */
|
/* zoom_box(rx1 - xctx->lw, ry1 - xctx->lw, rx2 + xctx->lw, ry2 + xctx->lw, 1.0); */
|
||||||
|
|
|
||||||
|
|
@ -303,6 +303,7 @@ static int ps_embedded_graph(int i, double rx1, double ry1, double rx2, double r
|
||||||
rhi = (int)(rh * scale + 1.0);
|
rhi = (int)(rh * scale + 1.0);
|
||||||
dbg(1, "graph size, saving zoom : %dx%d\n", rwi, rhi);
|
dbg(1, "graph size, saving zoom : %dx%d\n", rwi, rhi);
|
||||||
save_restore_zoom(1, &zi);
|
save_restore_zoom(1, &zi);
|
||||||
|
xctx->lw *= scale;
|
||||||
set_viewport_size(rwi, rhi, xctx->lw);
|
set_viewport_size(rwi, rhi, xctx->lw);
|
||||||
|
|
||||||
/* zoom_box(rx1 - xctx->lw, ry1 - xctx->lw, rx2 + xctx->lw, ry2 + xctx->lw, 1.0); */
|
/* zoom_box(rx1 - xctx->lw, ry1 - xctx->lw, rx2 + xctx->lw, ry2 + xctx->lw, 1.0); */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue