bugGNU Octave - Bugs: bug #49722, Incompatible behavior of...

 
 

bug #49722: Incompatible behavior of "isprop"

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Mon 28 Nov 2016 05:55:28 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 28 Nov 2016 11:25:36 AM UTC, comment #3: 

I pushed the patch:
http://hg.savannah.gnu.org/hgweb/octave/rev/302b949f0be6

Closing report as fixed

Pantxo Diribarne <pantxo>
Group Member
Mon 28 Nov 2016 10:37:14 AM UTC, comment #2: 

I updated the BIST (one was failing after the previous patch) and produced a new patch.

(file #39092)

Pantxo Diribarne <pantxo>
Group Member
Mon 28 Nov 2016 09:35:03 AM UTC, comment #1: 

Confirmed, I attached a patch that brings Octave in line with ML.

(file #39089)

Pantxo Diribarne <pantxo>
Group Member
Mon 28 Nov 2016 05:55:28 AM UTC, original submission:  


On Matlab 2015a


>> a = struct ('x1', 1, 'x2', 2, 'x3', 3);
>> isprop (a, 'x3')

ans =

     0

>> b(1) = struct ('x1', 1, 'x2', 2, 'x3', 3);
>> b(2) = struct ('x1', 1, 'x2', 2, 'x3', 3);
>> isprop (b, 'x3')

ans =

     0     0


while Octave exits with error:


>> a = struct ('x1', 1, 'x2', 2, 'x3', 3);
>> isprop (a, 'x3')
error: isprop: H must be a graphics handle or vector of handles
error: called from
    isprop at line 40 column 5

>> b(1) = struct ('x1', 1, 'x2', 2, 'x3', 3);
>> b(2) = struct ('x1', 1, 'x2', 2, 'x3', 3);
>> isprop (b, 'x3')
error: isprop: H must be a graphics handle or vector of handles
error: called from
    isprop at line 40 column 5


Avinoam Kalma <avinoam>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #39092:  isprop2.patch added by pantxo (2KiB - text/x-diff)
file #39089:  isprop.patch added by pantxo (1KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Updated the item)
  • -email is unavailable- added by avinoam (Submitted the item)
  • -email is unavailable- added by avinoam
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-28 pantxo StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2016-11-28 pantxo Attached File- Added isprop2.patch, #39092
    2016-11-28 pantxo Attached File- Added isprop.patch, #39089
        CategoryOctave Function Plotting
        StatusNone Patch Submitted
    2016-11-28 avinoam Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code