[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44501] Compatability in menu command
From: |
Avinoam Kalma |
Subject: |
[Octave-bug-tracker] [bug #44501] Compatability in menu command |
Date: |
Tue, 10 Mar 2015 19:49:02 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?44501>
Summary: Compatability in menu command
Project: GNU Octave
Submitted by: avinoam
Submitted on: Tue 10 Mar 2015 07:49:01 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Avinoam
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0-rc1
Operating System: Any
_______________________________________________________
Details:
The command:
menu ('choose', 'option A', 'option B');
works well in Octave, as in Matlab (Matlab result is more esthetic,
because the rectangle is in the exact size of the options).
but
opt{1} = 'option A';
opt{2} = 'option B';
menu ('choose', opt);
works in Matlab and not in Octave.
Maybe the solution is to change the lines in listdlg.m
if (! iscell (listcell))
listcell = {listcell};
endif
to
if (! iscell (listcell))
listcell = {listcell};
else
listcell = listcell{1};
endif
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44501>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44501] Compatability in menu command,
Avinoam Kalma <=