Mercurial > jwe > octave
changeset 31017:a1476e3ea73d stable
msgbox.m: Allow "custom" cdata for icon (bug #62445).
* msgbox.m: Fix input validation to allow "cdata" input.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 23 May 2022 21:02:12 -0700 |
parents | c2407c2749fb |
children | ab5a4df64bc3 490e8a6107d0 |
files | scripts/gui/msgbox.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/gui/msgbox.m Mon May 23 13:57:20 2022 +0200 +++ b/scripts/gui/msgbox.m Mon May 23 21:02:12 2022 -0700 @@ -158,7 +158,7 @@ error ('msgbox: invalid data for "custom" icon'); elseif (ismatrix (icon.cdata) && nargs == 4) icon.colormap = varargin{4}; - else + elseif (nargs > 3) print_usage (); endif elseif (nargs > 2)