After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339852 - index image maps creating wrong href
index image maps creating wrong href
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.7.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2006-04-26 19:55 UTC by Michael Satlow
Modified: 2006-05-08 17:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Michael Satlow 2006-04-26 19:55:32 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.
Comment 1 Michael Satlow 2006-04-26 22:13:34 UTC
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);
	}
Comment 2 Paolo Bacchilega 2006-05-08 17:30:19 UTC
fixed in current CVS, thanks.