bugGNU Octave - Bugs: bug #30888, hold(hax) fails

 
 

bug #30888: hold(hax) fails

Submitter:  Pascal Dupuis <cdemills>
Submitted:  Fri 27 Aug 2010 02:04:38 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Pascal Dupuis Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 27 Aug 2010 07:43:43 PM UTC, comment #2: 

OK, thanks. I wasn't sure the fix was correct.

Regards

Pascal

Pascal Dupuis <cdemills>
Group Member
Fri 27 Aug 2010 06:05:03 PM UTC, comment #1: 

I checked in a changeset attributed to you.

John W. Eaton <jwe>
Group administrator
Fri 27 Aug 2010 02:04:38 PM UTC, original submission:  

Hello,

The function 'hold' works either on the current figure and axes, either on a user-supplied axes. In the latter case, the internal variable 'fig' is not initialised, leading to a failure at the end:

 if (turn_hold_off)
    set (ax, "nextplot", "replace");
  else
    set (ax, "nextplot", "add");
    set (fig, "nextplot", "add");
  endif

The solution is to get the figure number as the parent of the axis handle:
fig = get(ax, "Parent");

Patch included.

Regards

Pascal

Pascal Dupuis <cdemills>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21321:  hold.m.pat added by cdemills (479B - image/x-coreldrawpattern)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by cdemills (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-27 jwe StatusNone Fixed
        Open/ClosedOpen Closed
    2010-08-27 cdemills Attached File- Added hold.m.pat, #21321

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code