Mercurial > hg > octave-lyh
changeset 15773:884079d45014
listdlg.m: Correct behavior for ListSize where height and width were swapped.
* scripts/java/listdlg.m: Swap height and width before calling java_invoke.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 12 Dec 2012 14:19:37 -0800 |
parents | 0f1a143e5002 |
children | eddc68c5e85e |
files | scripts/java/listdlg.m |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/java/listdlg.m +++ b/scripts/java/listdlg.m @@ -124,7 +124,8 @@ endif ## transform matrices to cell arrays of strings - listsize = arrayfun (@num2str, listsize, "UniformOutput", false); + ## swap width and height to correct calling format for JDialogBox + listsize = {num2str(listsize(2)), num2str(listsize(1))}; initialvalue = arrayfun (@num2str, initialvalue, "UniformOutput", false); ret = java_invoke ("org.octave.JDialogBox", "listdlg", listcell,