octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41957] print -P fails, and print when no figu


From: Rik
Subject: [Octave-bug-tracker] [bug #41957] print -P fails, and print when no figure exists crashes
Date: Thu, 27 Mar 2014 15:12:43 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Follow-up Comment #1, bug #41957 (project octave):

Could you run the following test code in Matlab?


ishandle ([])


Does this return an empty matrix, or 0 because an empty matrix is definitely
not a handle?

In part of the patch you have


     if (! any (strcmp (arg_st.devopt, gs_device_list))
-      || ! any (strcmp (arg_st.devopt, {"pswrite", "ps2write"})))
+      ||  any (strcmp (arg_st.devopt, {"pswrite", "ps2write"}))
+       )
       ## Only postscript and supported ghostscript devices
       error ("print: invalid format for spooling to a printer")
     endif


The intent was to check for formats which couldn't be spooled to the printer. 
On UNIX systems postscript usually can be sent to the printer which is why
there was a check for the format NOT being pswrite.  By dropping the '!' we
will now error out for what seems a legitimate case.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41957>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]