SHA256
1
0
forked from pool/xfig
xfig/xfig.3.2.5b-pspdftex.dif
2016-09-22 10:48:04 +00:00

37 lines
1.2 KiB
Plaintext

---
src/u_print.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- src/u_print.c
+++ src/u_print.c 2016-09-22 08:48:41.606479729 +0000
@@ -363,8 +363,10 @@ print_to_file(char *file, char *lang, fl
strcat(prcmd, tmpcmd);
} else if (!strcmp(lang,"pspdftex")) {
/* first generate pstex postscript then pdftex PDF. */
- sprintf(tmpcmd, "-n %s", outfile);
+ sprintf(tmpcmd, "-b %d -n %s", border, outfile);
strcat(prcmd, tmpcmd);
+ if (appres.correct_font_size)
+ strcat(prcmd," -F ");
if (backgrnd[0]) {
strcat(prcmd," -g \\"); /* must escape the #rrggbb color spec */
@@ -385,7 +387,7 @@ print_to_file(char *file, char *lang, fl
/* make it suitable for pstex. */
strsub(prcmd,"pspdftex","pstex",tmpcmd,0);
strcat(tmpcmd,".eps");
- (void) exec_prcmd(tmpcmd, "EXPORT of PostScript part");
+ (void) exec_prcmd(tmpcmd, "EXPORT of EPS part");
/* make it suitable for pdftex. */
strsub(prcmd,"ps","pdf",tmpcmd,0);
@@ -755,7 +757,7 @@ void build_layer_list(char *layers)
{
char list[PATH_MAX], notlist[PATH_MAX], num[10];
int layer, len, notlen;
- int firstyes, lastyes, firstno, lastno;
+ int firstyes, lastyes = 0, firstno, lastno = 0;
layers[0] = '\0';