Fix a bug in the filename completion.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
8025bf7251
commit
1d56e20d19
2
CHANGES
2
CHANGES
@ -1,5 +1,7 @@
|
||||
CHANGES IN FLTK 1.1.0
|
||||
|
||||
- Fixed a filename completion bug when changing
|
||||
directories.
|
||||
- Fl_File_Chooser::value() would return directories with
|
||||
a trailing slash, but would not accept a directory
|
||||
without a trailing slash.
|
||||
|
@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.19 2002/07/14 18:18:59 easysw Exp $"
|
||||
// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.20 2002/07/14 18:26:54 easysw Exp $"
|
||||
//
|
||||
// More Fl_File_Chooser routines.
|
||||
//
|
||||
@ -538,6 +538,9 @@ Fl_File_Chooser::fileNameCB()
|
||||
|
||||
directory(pathname);
|
||||
|
||||
snprintf(pathname, sizeof(pathname), "%s/%s", directory_, filename);
|
||||
fileName->value(pathname);
|
||||
|
||||
fileName->position(p, m);
|
||||
}
|
||||
}
|
||||
@ -1135,5 +1138,5 @@ unquote_pathname(char *dst, // O - Destination string
|
||||
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.19 2002/07/14 18:18:59 easysw Exp $".
|
||||
// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.20 2002/07/14 18:26:54 easysw Exp $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user