Commit 316601b1 authored by Asbjørn Pettersen's avatar Asbjørn Pettersen
Browse files

handle html file opening correct

parent 5a8eb566
Mon Sep 13 16:45:30 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
* plug-ins/helpbrowser/helpbrowser.c (load_page): BUG in helpbrowser.
Trying to open file like "file.html#1111" should be "file.html".
Added g_strdelimit() to remove '#' char before file opening.
g_strdelimit (new_base,"#",'\0');
afile = fopen (new_base, "rt");
Mon Sep 13 12:58:56 MEST 1999 Sven Neumann <sven@gimp.org>
* app/brush_select.c: corrected scrolling in the Brushes Dialog.
......
......@@ -38,6 +38,10 @@
/* defines */
#ifdef __EMX__
#define chdir _chdir2
#endif
#define EEEK 23
#define GIMP_HELP_EXT_NAME "extension_gimp_help_browser"
#define GIMP_HELP_TEMP_EXT_NAME "extension_gimp_help_browser_temp"
......@@ -409,6 +413,7 @@ load_page (HelpPage *source_page,
new_dir = g_dirname (ref);
new_base = g_basename (ref);
/* return value is intentionally ignored */
chdir (old_dir);
......@@ -443,6 +448,11 @@ load_page (HelpPage *source_page,
goto FINISH;
}
/*
* handle basename like: filename.html#11111 -> filename.html
*/
g_strdelimit (new_base,"#",'\0');
afile = fopen (new_base, "rt");
if (afile != NULL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment