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:06:44 -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

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

sorry, markup problems:


>> 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));


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]