bugGNU Octave - Bugs: bug #31834, setting resolution for 'print' not...

 
 

bug #31834: setting resolution for 'print' not working

Submitted by:  Muhali <muhali>
Submitted on:  Thu 09 Dec 2010 06:19:57 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.3.52Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 09 Dec 2010 07:05:31 PM UTC, comment #1:

Thanks for the patch. I modified it to use 'str2double' which doesn't call 'eval', just in case somebody accidentally has a string with executable code in it. I applied the patch in this changeset: http://hg.savannah.gnu.org/hgweb/octave/rev/492e7b587352.

Rik <rik5>
Project Administrator
Thu 09 Dec 2010 06:19:57 PM UTC, original submission:

setting print resolution doesn't work:

octave:1> figure
octave:2> print("foo.png", "-r300")
error: print: operator *: nonconformant arguments (op1 is 1x2, op2 is 1x3)
error: called from:
error: /usr/local/share/octave/3.3.52+/m/plot/print.m at line 235, column 22

patch attached.

M.

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #22166:  print.patch added by muhali (575B - text/x-patch - print patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Dec 2010 07:05:31 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 09 Dec 2010 06:19:57 PM UTCmuhaliAttached File-=>Added print.patch, #22166

    Back to the top


    Powered by Savane 3.1-cleanup1