diff options
Diffstat (limited to 'ps/ps-document.c')
-rw-r--r-- | ps/ps-document.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ps/ps-document.c b/ps/ps-document.c index c1a9481..4d56721 100644 --- a/ps/ps-document.c +++ b/ps/ps-document.c @@ -548,12 +548,12 @@ set_up_page(PSDocument * gs) GdkColormap *colormap; gboolean size_changed; - LOG ("Setup the page"); - #ifdef HAVE_LOCALE_H char *savelocale; #endif + LOG ("Setup the page"); + size_changed = compute_size (gs); if (gs->pstarget == NULL) @@ -783,8 +783,6 @@ start_interpreter(PSDocument * gs) int std_out[2]; /* pipe from interp stdout */ int std_err[2]; /* pipe from interp stderr */ - LOG ("Start the interpreter"); - #define NUM_ARGS 100 #define NUM_GS_ARGS (NUM_ARGS - 20) #define NUM_ALPHA_ARGS 10 @@ -793,6 +791,8 @@ start_interpreter(PSDocument * gs) char **gs_args, **alpha_args = NULL; int argc = 0, i; + LOG ("Start the interpreter"); + if(!gs->gs_filename) return 0; |