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

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

[Octave-bug-tracker] [bug #52838] problem with print keyword 'filpage'


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #52838] problem with print keyword 'filpage'
Date: Mon, 8 Jan 2018 15:03:15 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?52838>

                 Summary: problem with print keyword 'filpage'
                 Project: GNU Octave
            Submitted by: avinoam
            Submitted on: Mon 08 Jan 2018 08:03:13 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Avinoam
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Any

    _______________________________________________________

Details:




>> plot (1:10)
>> print ('a.pdf', '-dpdf', '-fillpage')
error: print: no figure to print
error: called from
    print at line 340 column 5


The bug is triggered in line 157 of __print_parse_opts__


   elseif (length (arg) > 2 && arg(1:2) == "-f")
        arg_st.figure = str2num (arg(3:end));
-verbatim+

a quick and dirty fix is to change line 159 to


      elseif (any (strcmp (arg, {"-painters", "-opengl", "-fillpage"})))


and move lines 159-160 before line 157





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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