From bb4daf44c8e2f403f48ada061b70abfc8517c09e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 23 Sep 2016 16:53:25 +0100 Subject: GProof: Fix typos in gs invocation --- source/gprf/gprf-doc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/gprf/gprf-doc.c') diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c index 81d8b489..f74454e5 100644 --- a/source/gprf/gprf-doc.c +++ b/source/gprf/gprf-doc.c @@ -629,7 +629,7 @@ generate_page(fz_context *ctx, gprf_page *page) argv[argc++] = "-dUsePDFX3Profile"; else argv[argc++] = print_profile; - argv[argc++] = display_profile; + argv[argc++] = disp_profile; argv[argc++] = "-dFitPage"; argv[argc++] = "-o"; argv[argc++] = filename; @@ -666,7 +666,7 @@ generate_page(fz_context *ctx, gprf_page *page) char gs_command[1024]; /* Invoke gs to convert to a temp file. */ sprintf(gs_command, "gswin32c.exe -sDEVICE=gprf %s %s -dFitPage -o \"%s\" -dFirstPage=%d -dLastPage=%d -I%%rom%%Resource/Init/ -g%dx%d \"%s\"", - print_profile == NULL ? "-dUsePDFX3Profile" : print_profile, display_profile, + print_profile == NULL ? "-dUsePDFX3Profile" : print_profile, disp_profile, filename, page->number+1, page->number+1, page->width, page->height, doc->pdf_filename); fz_system(ctx, gs_command); #endif -- cgit v1.2.3