Fix handling of directories with \ in them.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
4f75130870
commit
913561c630
2
CHANGES
2
CHANGES
@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.2
|
CHANGES IN FLTK 1.1.2
|
||||||
|
|
||||||
|
- Fl_File_Chooser didn't handle WIN32 home directories
|
||||||
|
that used backslashes instead of forward slashes.
|
||||||
- Fl_Text_Display didn't limit the resize height to 1
|
- Fl_Text_Display didn't limit the resize height to 1
|
||||||
line.
|
line.
|
||||||
- Fl_Scrollbar widgets incorrectly took keyboard focus
|
- Fl_Scrollbar widgets incorrectly took keyboard focus
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.23 2002/08/09 01:09:48 easysw Exp $"
|
// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.24 2002/10/28 15:00:56 easysw Exp $"
|
||||||
//
|
//
|
||||||
// More Fl_File_Chooser routines.
|
// More Fl_File_Chooser routines.
|
||||||
//
|
//
|
||||||
@ -1112,11 +1112,17 @@ quote_pathname(char *dst, // O - Destination string
|
|||||||
dstsize --;
|
dstsize --;
|
||||||
|
|
||||||
while (*src && dstsize > 1) {
|
while (*src && dstsize > 1) {
|
||||||
if (*src == '/')
|
if (*src == '\\') {
|
||||||
|
// Convert backslash to forward slash...
|
||||||
*dst++ = '\\';
|
*dst++ = '\\';
|
||||||
|
*dst++ = '/';
|
||||||
|
src ++;
|
||||||
|
} else {
|
||||||
|
if (*src == '/') *dst++ = '\\';
|
||||||
|
|
||||||
*dst++ = *src++;
|
*dst++ = *src++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
*dst = '\0';
|
*dst = '\0';
|
||||||
}
|
}
|
||||||
@ -1143,5 +1149,5 @@ unquote_pathname(char *dst, // O - Destination string
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.23 2002/08/09 01:09:48 easysw Exp $".
|
// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.24 2002/10/28 15:00:56 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user