[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48186] delete(allchild(fig)) in a "deletefcn"
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #48186] delete(allchild(fig)) in a "deletefcn" callback raises error |
Date: |
Mon, 6 Jan 2020 06:02:25 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #13, bug #48186 (project octave):
I think this report should be reopened. While the code from comment #5 runs
fine with 5.1, it returns an error with current dev:
octave:1> F = figure('Units','normalized');
octave:2> uipanel(F,'Position',[0 0 0.45 1],
'DeleteFcn','delete(allchild(gcbf))');
octave:3> uipanel(F,'Position',[0.55 0 0.45 1]);
octave:4> close(F)
error: delete: first argument must be a filename or graphics handle
error: called from
delete at line 61 column 5
delete at line 58 column 5
closereq at line 37 column 5
close at line 112 column 5
and if you revert the order the two uipanels are created then Octave seems to
be stuck in an infinite loop:
octave:1> F = figure('Units','normalized');
octave:2> uipanel(F,'Position',[0.55 0 0.45 1]);
octave:3> uipanel(F,'Position',[0 0 0.45 1],
'DeleteFcn','delete(allchild(gcbf))');
octave:4> close(F)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?48186>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #48186] delete(allchild(fig)) in a "deletefcn" callback raises error,
Guillaume <=