summaryrefslogtreecommitdiff
path: root/navit/graphics.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-21 08:11:50 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-21 08:11:50 +0000
commit8d92c3cec5e2d1f6c8b5d14974103ff8ed2d91af (patch)
tree896f2af21dc61e546dc0f283bfb781d8ac34597c /navit/graphics.c
parent3f8572cd7b8d5245842a07a23c4bb95e03f5a5af (diff)
downloadnavit-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.c2
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