changeset 11990:64759142814d release-3-2-x

print.m: Fix logic associated with 'have_ghostscript'.
author Ben Abbott <bpabbott@mac.com>
date Fri, 12 Jun 2009 10:47:29 +0200
parents 00c8df6335ff
children 1e640b3de2ad
files scripts/ChangeLog scripts/plot/print.m
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,5 +1,6 @@
 2009-06-11  Ben Abbott <bpabbott@mac.com>
 
+	* plot/print.m: Fix logic associated with 'have_ghostscript'.
 	* plot/gnuplot_drawnow.m: Add support for pdfcairo and pngcairo
 	terminals. Minor code improvements.
 	* plot/print.m: Associate '-mono' with devices ps, ps2, eps, & eps2.
--- a/scripts/plot/print.m
+++ b/scripts/plot/print.m
@@ -311,7 +311,7 @@
 		"ps", "ps2", "psc", "psc2", "eps", "eps2", ...
 		"epsc", "epsc2", "emf", "pdf", "pslatex", ...
 		"epslatex", "epslatexstandalone", "pstex"};
-    if (! any (strcmp (dev, dev_list)))
+    if (! any (strcmp (dev, dev_list)) && have_ghostscript)
       ghostscript_output = name;
       ghostscript_device = dev;
       dev = "epsc";
@@ -479,7 +479,7 @@
       else
         gnuplot_supports_term = any (strcmp (available_terminals, termn));
       endif
-    elseif (strcmp (termn, "pdf") && have_ghostscript)
+    elseif (strcmp (termn, "pdf"))
       ## Some Linux variants do not include a "pdf" capable gnuplot.
       ## To be safe, use Ghostscript.
       if (have_ghostscript)