another update for image handling in Fl_Help_View
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6744 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
20132902af
commit
c1def658ed
@ -2690,7 +2690,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));
|
||||
|
||||
@ -3161,7 +3160,6 @@ Fl_Help_View::load(const char *f)// I - Filename to load (may also have target)
|
||||
}
|
||||
|
||||
clear_selection();
|
||||
free_data();
|
||||
|
||||
strlcpy(newname, f, sizeof(newname));
|
||||
if ((target = strrchr(newname, '#')) != NULL)
|
||||
@ -3175,6 +3173,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_));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user