bugGNU Octave - Bugs: bug #39732, uigetfile adds empty entries to...

 
 

bug #39732: uigetfile adds empty entries to result

Submitter:  Cristian <r41nm4n>
Submitted:  Thu 08 Aug 2013 05:52:26 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 13 Aug 2013 03:30:06 PM UTC, comment #5: 

I fixed this bug here (http://hg.savannah.gnu.org/hgweb/octave/rev/98fcf9373f5e).  John, sorry I didn't push the change before you also posted a patch.

Rik <rik5>
Group administrator
Tue 13 Aug 2013 01:10:50 PM UTC, comment #4: 

Try this patch.


(file #28830)

John Donoghue <lostbard>
Group Member
Tue 13 Aug 2013 01:40:54 AM UTC, comment #3: 

I finally thought to try this is the GUI and I can reproduce it there.  With the CLI it works fine.  I've changed the category to GUI since this is where the real problem lies.  I've marked this bug as confirmed.

Rik <rik5>
Group administrator
Sun 11 Aug 2013 07:35:47 PM UTC, comment #2: 

On my platform the problem persists with hg id 7c06875c2dcc and FLTK 1.3.2, in Debian jessie up-to-date.

Cristian <r41nm4n>
Sun 11 Aug 2013 03:29:25 PM UTC, comment #1: 

"MultiSelect" works fine for me.  This is with FLTK-1.3 and 'hg id' 7c06875c2dcc.  You might try updating either to a newer Mercurial tip or newer FLTK and see if the problem is still there.

Rik <rik5>
Group administrator
Thu 08 Aug 2013 05:52:26 PM UTC, original submission:  

When selecting more than one file with uigetfile with the option "multiselect", two empty entries are added to the list of selected files.
For example, when executing this code snippet


[f, d] = uigetfile('*', 'Please select two files', 'MultiSelect','on');
f


this result is returned if two files "firstfile.txt" and
"secondfile.txt" are selected by the user:


f =
{
  [1,1] = firstfile.txt
  [1,2] = secondfile.txt
  [1,3] = [](0x0)
  [1,4] = [](0x0)
}


The two entries "[](0x0)" do not correspond to any selected file.

Cristian <r41nm4n>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #28830:  uigetfile_fix.patch added by lostbard (916B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Updated the item)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by r41nm4n (Submitted the item)
  • -email is unavailable- added by r41nm4n
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-13 rik5 StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2013-08-13 lostbard Attached File- Added uigetfile_fix.patch, #28830
        StatusConfirmed In Progress
        Assigned toNone lostbard
    2013-08-13 rik5 CategoryOctave Function GUI
        StatusWorks For Me Confirmed
    2013-08-11 rik5 StatusNone Works For Me
    2013-08-08 r41nm4n Carbon-Copy- Added r41nm4n

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code