another update for image handling in Fl_Help_View

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6745 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2009-04-07 18:37:25 +00:00
parent 9a95302821
commit bc29d7f0a0

View File

@ -2710,7 +2710,6 @@ void Fl_Help_View::follow_link(Fl_Help_Link *linkp)
char target[32]; // Current target
clear_selection();
free_data();
strlcpy(target, linkp->name, sizeof(target));
@ -3135,7 +3134,6 @@ Fl_Help_View::load(const char *f)// I - Filename to load (may also have target)
char newname[1024]; // New filename buffer
clear_selection();
free_data();
strlcpy(newname, f, sizeof(newname));
if ((target = strrchr(newname, '#')) != NULL)
@ -3149,6 +3147,8 @@ Fl_Help_View::load(const char *f)// I - Filename to load (may also have target)
if (!localname)
return (0);
free_data();
strlcpy(filename_, newname, sizeof(filename_));
strlcpy(directory_, newname, sizeof(directory_));