[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48186] delete(allchild(fig)) in a "deletefcn"
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #48186] delete(allchild(fig)) in a "deletefcn" callback raises error |
Date: |
Wed, 28 Oct 2020 19:14:32 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0 |
Follow-up Comment #18, bug #48186 (project octave):
The problem seems to be that at some point "allchild" returns handles that
"ishghandle" judges invalid:
F = figure('Units','normalized');
h1 = uipanel(F,'Position',[0 0 0.45 1], 'DeleteFcn','disp (ishghandle
(allchild (gcbf ())))');
h2 = uipanel(F,'Position',[0.55 0 0.45 1]);
close (F);
This shows that the first handle in the return list (h2) is not valid anymore.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?48186>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/