[Top][All Lists]

[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: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #41957] print -P fails, and print when no figure exists crashes
Date: Tue, 25 Mar 2014 17:19:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0


                 Summary: print -P fails, and print when no figure exists
                 Project: GNU Octave
            Submitted by: godfrey
            Submitted on: Tue 25 Mar 2014 05:19:42 PM GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Michael Godfrey
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any



This patch corrects 2 problems:
1. print -Pa_printer introduces an extraneous -P so that
   the resulting lpr command fails. Removed -P.

2. The test for the presence of a figure at the beginning of
   print() fails to detect the lack of a figure. This may
   be due to a change in isfigure(). If there is no figure
   and the opts.figure value is set to empty, isfigure returns
   true. Use of isempty instead of isfigure fixes this.

In addition I edited the print help info. Currently it was
unclear and referred to the ability to generate TeX (as
opposed to LaTeX.  Since it unconditionally gereates LaTeX
I removed the TeX references and tried to clarify the operation
of the latex modes.

The print command is quite complex and handles lots of different
cases and both fltk and gnuplot. So, it would be helpful if
these patches could be tested in other environments.  So far
they work for me and make generating plots with real TeX in the
text strings much more convenient.


File Attachments:

Date: Tue 25 Mar 2014 05:19:42 PM GMT  Name: print_fixes.diff  Size: 6kB   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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