diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-14 18:26:54 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-14 18:26:54 +0000 |
| commit | 1d56e20d199d75470fc9562795fc6f72b183c948 (patch) | |
| tree | d54268bbeddf22cd1b224f22e1fe4fe5fd649549 | |
| parent | 8025bf725102c67f863df036392d118549bd2125 (diff) | |
Fix a bug in the filename completion.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -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. diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index b09ae539a..6109544b5 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -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 $". // |
