GNOME Bugzilla – Bug 339852
index image maps creating wrong href
Last modified: 2006-05-08 17:30:19 UTC
creating a image index with html map produces wrong href links: Example: <AREA SHAPE="RECT" COORDS="15,15,159,159" HREF="../../../../file:///home/michi/gudrun_70_01/img_1670.jpg"> Probably get_path_relative_to_dir in file_utils.c should be adapted to gnome-vfs uri's.
Bugfix: char * get_path_relative_to_dir (const char *filename, const char *destdir) { char *sourcedir; char **sourcedir_v; char **destdir_v; int i, j; char *result; GString *relpath; // begin new code // check if filename has a scheme if(uri_has_scheme(filename)) { // extract scheme char *scheme = get_uri_scheme(filename); // trunc scheme from filename filename=filename+strlen(scheme); g_free(scheme); }
fixed in current CVS, thanks.