diff --git a/src/psprint.c b/src/psprint.c index 74234638..a78e88e8 100644 --- a/src/psprint.c +++ b/src/psprint.c @@ -1149,7 +1149,7 @@ void create_ps(char **psfile, int what, int fullzoom) fprintf(fd, "%%%%EndPageSetup\n"); /* add small page title */ - if(tclgetboolvar("ps_page_title")) + if(tclgetboolvar("ps_page_title") && fullzoom != 2) fprintf(fd, "/Helvetica FF 10 SCF SF NP 20 %g MT (%s) show\n", pagey - 20, xctx->current_name); /* Add anchor for pdfmarks */ diff --git a/src/scheduler.c b/src/scheduler.c index f9f496f9..a1672c18 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -3078,13 +3078,13 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg if(w == 0) w = xctx->xrect[0].width; if(h == 0) h = xctx->xrect[0].height; save_restore_zoom(1, &zi); - set_viewport_size(w, h, 1.0); + set_viewport_size(w, h, xctx->lw); zoom_full(0, 0, 2 * tclgetboolvar("zoom_full_center"), 0.97); resetwin(1, 1, 1, w, h); ps_draw(7, fullzoom); save_restore_zoom(0, &zi); resetwin(1, 1, 1, 0, 0); - change_linewidth(-1.); + change_linewidth(save_lw); } else if(argc == 10 || xctx->lastsel) { if(xctx->lastsel) { xRect boundbox; @@ -3108,7 +3108,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg if(w == 0) w = (int) fabs(x2 - x1); if(h == 0) h = (int) fabs(y2 - y1); save_restore_zoom(1, &zi); - set_viewport_size(w, h, 1.0); + set_viewport_size(w, h, xctx->lw); zoom_box(x1, y1, x2, y2, 1.0); resetwin(1, 1, 1, w, h); ps_draw(7, fullzoom); @@ -3134,13 +3134,13 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg if(w == 0) w = xctx->xrect[0].width; if(h == 0) h = xctx->xrect[0].height; save_restore_zoom(1, &zi); - set_viewport_size(w, h, 1.0); + set_viewport_size(w, h, xctx->lw); zoom_full(0, 0, 2 * tclgetboolvar("zoom_full_center"), 0.97); resetwin(1, 1, 1, w, h); print_image(); save_restore_zoom(0, &zi); resetwin(1, 1, 1, 0, 0); - change_linewidth(-1.); + change_linewidth(save_lw); } else if(argc == 10 || xctx->lastsel) { if(xctx->lastsel) { xRect boundbox; @@ -3163,7 +3163,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg if(w == 0) w = (int) fabs(x2 - x1); if(h == 0) h = (int) fabs(y2 - y1); save_restore_zoom(1, &zi); - set_viewport_size(w, h, 1.0); + set_viewport_size(w, h, xctx->lw); zoom_box(x1, y1, x2, y2, 1.0); resetwin(1, 1, 1, w, h); print_image();