octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #45545] The listdlg items can no longer be sel


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #45545] The listdlg items can no longer be selected
Date: Tue, 14 Jul 2015 18:55:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #3, bug #45545 (project octave):

Hold on.  There is a bug here still.  The third example doesn't have
SelectionMode specified.  The default is set to "Multiple", i.e.,


  listcell = {""};
  selmode = "Multiple";
  listsize = [160, 300];


and the comparison within the script file is case insensitive:


  ## make sure valid selection mode
  if (! strcmpi (selmode, "multiple") && ! strcmpi (selmode, "single"))
    error ("listdlg: invalid SelectionMode");
  endif


although I'm pretty sure the intent was for the comparison to be case
sensitive, with there being


    elseif (strcmpi (varargin{i}, "SelectionMode"))
      selmode = tolower (varargin{i+1});


But the comparison in C/Qt code is case sensitive.

There are two solutions here.  Either change

selmode = "Multiple"

to

selmode = "multiple"

or modify the C/Qt code to do a case-insensitive comparison.  I'm inclined to
change to the latter because this bug arising is already indicative a the
source of confusion.  Which is preferred?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45545>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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