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

 
 

bug #30888: hold(hax) fails

Submitted by:  Pascal Dupuis <cdemills>
Submitted on:  Fri 27 Aug 2010 02:04:38 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Pascal DupuisOpen/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project Member
Fri 27 Aug 2010 06:05:03 PM UTC, comment #1:

I checked in a changeset attributed to you.

John W. Eaton <jwe>
Project 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>
Project Member

 

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

Attach File(s):
   
   
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
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by cdemills (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
    Fri 27 Aug 2010 06:05:13 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 27 Aug 2010 02:04:38 PM UTCcdemillsAttached File-=>Added hold.m.pat, #21321

    Back to the top


    Powered by Savane 3.1-cleanup1