bugGNU Octave - Bugs: bug #44749, Interpretation of cell array in...

 
 

bug #44749: Interpretation of cell array in 'String' property of a 'text' uicontrol

Submitted by:  Guillaume <gyom>
Submitted on:  Mon 06 Apr 2015 06:07:01 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
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)

Tue 07 Apr 2015 04:45:02 PM UTC, comment #6:

Many thanks John, it works as expected now.

Guillaume <gyom>
Tue 07 Apr 2015 04:15:06 PM UTC, comment #5:

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

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 07 Apr 2015 07:07:42 AM UTC, comment #4:

It is indeed a 2x1 string at first but if you edit the content of the uicontrol (or just type enter to validate it), it returns a string, e.g. I get this if I replace 'a|b' with 'c<ENTER>d'

Guillaume <gyom>
Tue 07 Apr 2015 02:41:17 AM UTC, comment #3:

it looks like get(H,'String') returns a 2x1 cell, so it is just not displaying the same as matlab does

John Donoghue <lostbard>
Project MemberIn charge of this item.
Mon 06 Apr 2015 10:04:12 PM UTC, comment #2:

My main issue is actually with an 'edit' uicontrol:

i.e. a multiline text edit is returned as a pipe-separated string instead of a cell array.

Guillaume <gyom>
Mon 06 Apr 2015 08:52:42 PM UTC, comment #1:

Related in matlab [1] : If you specify a cell array for a check box, push button, radio button, or toggle button, then MATLAB displays only the first element in the cell array.

Currently octave will display a | b for the button etc as well.

[1] http://www.mathworks.com/help/matlab/ref/uicontrol-properties.html

John Donoghue <lostbard>
Project MemberIn charge of this item.
Mon 06 Apr 2015 06:07:01 PM UTC, original submission:

Octave displays:

a|b

while MATLAB displays:

a
b

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 07 Apr 2015 05:39:11 PM UTClostbardStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Tue 07 Apr 2015 04:15:06 PM UTClostbardStatusNone=>Ready For Test
      Assigned toNone=>lostbard
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1