diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-04-21 08:11:50 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-04-21 08:11:50 +0000 |
commit | 8d92c3cec5e2d1f6c8b5d14974103ff8ed2d91af (patch) | |
tree | 896f2af21dc61e546dc0f283bfb781d8ac34597c /navit/graphics.c | |
parent | 3f8572cd7b8d5245842a07a23c4bb95e03f5a5af (diff) | |
download | navit-svn-8d92c3cec5e2d1f6c8b5d14974103ff8ed2d91af.tar.gz |
Fix:Core:Only consider path relative to xpm if it doesn't contain a slash
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4444 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r-- | navit/graphics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index cc9d2d44..3d06315b 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -1655,7 +1655,7 @@ graphics_icon_path(char *icon) if (file_wordexp_get_count(wordexp)) icon=file_wordexp_get_array(wordexp)[0]; } - if (icon[0] == '/') + if (strchr(icon,'/')) ret=g_strdup(icon); else { #ifdef HAVE_API_ANDROID |