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

[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/




reply via email to

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