Mercurial > hg > octave-lyh
diff scripts/plot/print.m @ 9337:878df7c11e3d
print.m: Fix logic associated with 'have_ghostscript'.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 11 Jun 2009 16:57:30 -0400 |
parents | 4f96a7770492 |
children | d6c99b2ee941 |
line wrap: on
line diff
--- 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)