[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure |
Date: |
Sat, 22 Apr 2023 17:58:56 -0400 (EDT) |
Follow-up Comment #5, bug #64092 (project octave):
ok looking at _plt_get_axis_arg_, it checks
if (! isempty (varargin) && isscalar (varargin{1})
&& ishghandle (varargin{1}) && varargin{1} != 0
&& ! isfigure (varargin{1}))
so a yes on ishghandle, but then uses isfigure to notch out any integer valued
doubles that might overlap with a false ishghandle positive. since most people
call with an axes handle, and that's a random negative scalar non-integer
double, it wouldn't trigger.
so something like quiver(gcf ,1,2), which is a valid usage, would still fail a
`ishghandle (varargin{1}) && ! isfigure (varargin{1})` test.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64092>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64092] ishandle returns true for non-handle variables with same value as open figure, Nicholas Jankowski, 2023/04/22
- [Octave-bug-tracker] [bug #64092] ishandle returns true for non-handle variables with same value as open figure, Nicholas Jankowski, 2023/04/22
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, Nicholas Jankowski, 2023/04/22
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, John W. Eaton, 2023/04/22
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, Nicholas Jankowski, 2023/04/22
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, Nicholas Jankowski, 2023/04/22
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, Nicholas Jankowski, 2023/04/22
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, anonymous, 2023/04/22
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, Markus Mützel, 2023/04/23
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, Rik, 2023/04/23
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, Nicholas Jankowski, 2023/04/24
- [Octave-bug-tracker] [bug #64092] ishghandle returns true for non-handle variables with same value as open figure, Rik, 2023/04/25