Hello,
there is another mistake:
>> columns = {"", "OS"};
>> data={"false","10";"false","11"};
clic on cancel
>> zenity_list(columns, data, "checklist","numeric output","error")
error: str2double: wrong type argument `cell'
Simply do in zenity_list.m:
diff --git a/main/zenity/inst/zenity_list.m b/main/zenity/inst/zenity_list.m
index 147428a..42aba1a 100644
--- a/main/zenity/inst/zenity_list.m
+++ b/main/zenity/inst/zenity_list.m
@@ -390,7 +390,7 @@ function [val, status] = zenity_list(col, data, varargin)
endif
## If user asked for numeric output, convert it to matrix
- if (options.num_out)
+ if (status == 0 && options.num_out)
val = str2double(val);
if (strcmpi(options.num_out, "error"))
if ( any(isnan( val(:) )) )
Best regards
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev