Mercurial > octave-dspies
changeset 18600:cdc16fbb513f
Allow only Ghostscript devices when spooling to a printer (bug #41957)
* __print_parse_opts__.m: Allow only Ghostscript devices when spooling to a
printer.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 28 Mar 2014 12:15:25 -0700 |
parents | 348f67886dc4 |
children | 077575fe9a7e |
files | scripts/plot/util/private/__print_parse_opts__.m |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__print_parse_opts__.m Fri Mar 28 08:47:55 2014 -0700 +++ b/scripts/plot/util/private/__print_parse_opts__.m Fri Mar 28 12:15:25 2014 -0700 @@ -335,9 +335,8 @@ error ("print: a file name may not specified when spooling to a printer") endif if (! any (strcmp (arg_st.devopt, gs_device_list)) - || ! any (strcmp (arg_st.devopt, {"pswrite", "ps2write"}))) - ## Only postscript and supported ghostscript devices - error ("print: invalid format for spooling to a printer") + ## Only supported ghostscript devices + error ("print: format must be a valid Ghostscript format for spooling to a printer") endif elseif (isempty (arg_st.name)) error ("print: an output file name must be specified")