mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
STR 2348: fixed possibly wrong relative path
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
CHANGES IN FLTK 1.3.0
|
CHANGES IN FLTK 1.3.0
|
||||||
|
|
||||||
|
- Fixed wrong relative path (STR #2384)
|
||||||
- Fixed static allocation in Fl_Tabs (STR #2370)
|
- Fixed static allocation in Fl_Tabs (STR #2370)
|
||||||
- Fixed Fl_Widget::measure_label() to const (STR #2406)
|
- Fixed Fl_Widget::measure_label() to const (STR #2406)
|
||||||
- Added step by step README's for MSWindows, OS X, and four
|
- Added step by step README's for MSWindows, OS X, and four
|
||||||
|
|||||||
@@ -210,6 +210,7 @@ fl_filename_relative(char *to, // O - Relative filename
|
|||||||
if (isdirsep(*slash)) slash ++;
|
if (isdirsep(*slash)) slash ++;
|
||||||
|
|
||||||
// do the same for the current dir
|
// do the same for the current dir
|
||||||
|
if (isdirsep(*newslash)) newslash --;
|
||||||
if (*newslash != '\0')
|
if (*newslash != '\0')
|
||||||
while (!isdirsep(*newslash) && newslash > cwd) newslash --;
|
while (!isdirsep(*newslash) && newslash > cwd) newslash --;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user