bugGNU Octave - Bugs: bug #44687, Properties of a popupmenu uicontrol

 
 

bug #44687: Properties of a popupmenu uicontrol

Submitted by:  Guillaume <gyom>
Submitted on:  Wed 01 Apr 2015 02:29:08 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: John Donoghue <lostbard>
Originator Name: GuillaumeOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Fri 03 Apr 2015 07:20:02 PM UTC, comment #10:

Closing report

John Donoghue <lostbard>
Project MemberIn charge of this item.
Thu 02 Apr 2015 08:52:51 PM UTC, comment #9:

Added http://hg.savannah.gnu.org/hgweb/octave/rev/5bd3216748fc to check if integer

John Donoghue <lostbard>
Project MemberIn charge of this item.
Thu 02 Apr 2015 07:20:56 PM UTC, comment #8:

Thanks again!

Last thing I notice is that MATLAB returns a warning/error as soon as 'Value' is above numel(String):

while Octave only complains from numel(String)+1.

Guillaume <gyom>
Thu 02 Apr 2015 06:51:01 PM UTC, comment #7:

Happens whenever setting the value it already is.

Fixed: http://hg.savannah.gnu.org/hgweb/octave/rev/e70df1ff58b7

John Donoghue <lostbard>
Project MemberIn charge of this item.
Thu 02 Apr 2015 06:30:10 PM UTC, comment #6:

Thanks. A wanning now also appears with a 'Value' of 1, while it should not happen.

Guillaume <gyom>
Thu 02 Apr 2015 05:10:45 PM UTC, comment #5:

Pushed http://hg.savannah.gnu.org/hgweb/octave/rev/519eb032ac35

which warns about invalid value set.

John Donoghue <lostbard>
Project MemberIn charge of this item.
Thu 02 Apr 2015 04:32:42 PM UTC, comment #4:

Same issue with checkbox set(H, 'Value', 10) provides warning in matlab.

John Donoghue <lostbard>
Project MemberIn charge of this item.
Thu 02 Apr 2015 11:22:02 AM UTC, comment #3:

Works great, many thanks! You can close the report now.

Testing your change, I noticed that MATLAB displays a warning if one attempts to set 'Value' out of bound, while Octave silently ignores it.

Guillaume <gyom>
Wed 01 Apr 2015 07:18:15 PM UTC, comment #2:

Pushed http://hg.savannah.gnu.org/hgweb/octave/rev/b08c13ed4a8c

John Donoghue <lostbard>
Project MemberIn charge of this item.
Wed 01 Apr 2015 07:10:50 PM UTC, comment #1:

Confirmed in both Linux and Windows

John Donoghue <lostbard>
Project MemberIn charge of this item.
Wed 01 Apr 2015 02:29:08 PM UTC, original submission:

Run the following:

It should display 'B' (as 'Value' is 2) but instead displays 'A'.

Furthermore, if you now manually switch it to 'C' (which will display 'cb') and type this:

it will execute the callback as well (and display 'cb') while MATLAB does not execute a callback when using 'set' programmatically.

Guillaume <gyom>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by gyom (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 03 Apr 2015 07:20:02 PM UTClostbardStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Wed 01 Apr 2015 07:18:15 PM UTClostbardStatusNone=>Ready For Test
    Wed 01 Apr 2015 07:10:50 PM UTClostbardItem GroupNone=>Incorrect Result
      Assigned toNone=>lostbard
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1