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

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

[Octave-bug-tracker] [bug #30888] hold(hax) fails


From: Pascal Dupuis
Subject: [Octave-bug-tracker] [bug #30888] hold(hax) fails
Date: Fri, 27 Aug 2010 14:04:39 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8

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

                 Summary: hold(hax) fails
                 Project: GNU Octave
            Submitted by: cdemills
            Submitted on: ven 27 aoû 2010 14:04:38 GMT
                Category: Libraries
                Severity: 3 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Pascal Dupuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: ven 27 aoû 2010 14:04:38 GMT  Name: hold.m.pat  Size: 479 o   By:
cdemills

<http://savannah.gnu.org/bugs/download.php?file_id=21321>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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