bugGNU Octave - Bugs: bug #62612, "Label" property not...

 
 

bug #62612: "Label" property not found with findobj()

Submitter:  Guillaume <gyom>
Submitted:  Fri 10 Jun 2022 09:43:11 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 10 Jun 2022 06:28:48 PM UTC, comment #5: 

I reviewed the patch and checked it in here: http://hg.savannah.gnu.org/hgweb/octave/rev/06c64a878fc0.

I changed the commit message to follow the Octave convention of having a summary followed by a per-file explanation of the changes made.

Marking as Fixed and closing report.

Rik <rik5>
Group administrator
Fri 10 Jun 2022 04:16:42 PM UTC, comment #4: 

Me neither. 😉
I found its definition in graphics.cc and thought it could be useful here...

Markus Mützel <mmuetzel>
Group administrator
Fri 10 Jun 2022 03:45:23 PM UTC, comment #3: 

Thanks Markus! I didn't know about get() vs _get_()

Guillaume <gyom>
Fri 10 Jun 2022 01:16:17 PM UTC, comment #2: 

That property was hidden for bug #62443 (not the other one).

Markus Mützel <mmuetzel>
Group administrator
Fri 10 Jun 2022 01:13:10 PM UTC, comment #1: 

Confirmed on a build from a recent head of the default branch.

This is probably because the 'Label' property of uimenu objects is now deprecated and hidden for bug #60870 (like you already pointed out).

The attached patch fixes this for me by letting `findobj` also check hidden properties.

(file #53293)

Markus Mützel <mmuetzel>
Group administrator
Fri 10 Jun 2022 09:43:11 AM UTC, original submission:  

"Label" properties are not found with findobj() while "Text" is. Probably a consequence of bug #60870 or bug #62443.


octave:1> F = figure (); U = uimenu (F, 'Label', 'Octave');
octave:2> get (U, 'Label')
ans = Octave
octave:3> get (U, 'Text')
ans = Octave
octave:4> findobj (U, 'Label', 'Octave')
ans = [](0x1)
octave:5> findobj (U, 'Text', 'Octave')
ans = -34.638


Guillaume <gyom>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-10 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2022-06-10 mmuetzel Attached File- Added bug62612-findobj-hidden-property.patch, #53293
        StatusNone Patch Submitted

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code