[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53209] inputdlg crashes if prompt and default

From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #53209] inputdlg crashes if prompt and default cell arrays are different sizes
Date: Sat, 24 Feb 2018 14:25:17 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1

Follow-up Comment #6, bug #53209 (project octave):

Yes my fix makes inputdlgś error checking Matlab-compatible, below is what
Matlab r2018a prerelease makes of the original example and a fixed one:

>> h = inputdlg ({'foo', 'bar'}, 'title', 1, {'123'})
Index exceeds array bounds.

Error in inputdlg (line 260)
  if ~ischar(DefAns{lp})
>> h = inputdlg ({'foo', 'bar'}, 'title', 1, {'123', '456'})

% (a neat inputdlg windows pops up with default values 123 and 456)

h =

  2×1 cell array



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]