# HG changeset patch # User Ben Abbott # Date 1244796449 -7200 # Node ID 64759142814d67519ba35ec944b38557eb48a3c5 # Parent 00c8df6335ffcc3729c533532b7ded93e4fcc736 print.m: Fix logic associated with 'have_ghostscript'. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,6 @@ 2009-06-11 Ben Abbott + * 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. diff --git a/scripts/plot/print.m b/scripts/plot/print.m --- 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)