Fixed wrong relative path (STR #2384)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@7859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2010-11-16 14:40:08 +00:00
parent a4587be93d
commit bce98b2826
3 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@ Changes since FLTK 1.1.10 include:
- Fixed menu and shortcut handling (STR #2243)
- Fixed multiple line output of fltk-config --libs (STR #2408)
- Fixed handling of missing fonts in Xft (STR #2355)
- Fixed wrong relative path (STR #2384)
----HTML----
@ -45,5 +46,6 @@ exceptions that allow for static linking.</P>
<LI> Fixed menu and shortcut handling (STR #2243)
<LI> Fixed multiple line output of fltk-config --libs (STR #2408)
<LI> Fixed handling of missing fonts in Xft (STR #2355)
<LI> Fixed wrong relative path (STR #2384)
</UL>

View File

@ -6,6 +6,7 @@ CHANGES IN FLTK 1.1.11
- Fixed menu and shortcut handling (STR #2243)
- Fixed multiple line output of fltk-config --libs (STR #2408)
- Fixed handling of missing fonts in Xft (STR #2355)
- Fixed wrong relative path (STR #2384)
CHANGES IN FLTK 1.1.10

View File

@ -186,6 +186,7 @@ fl_filename_relative(char *to, // O - Relative filename
if (isdirsep(*slash)) slash ++;
// do the same for the current dir
if (isdirsep(*newslash)) newslash--;
if (*newslash != '\0')
while (!isdirsep(*newslash) && newslash > cwd) newslash --;