summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-31 20:08:43 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-31 20:08:43 +0000
commitfc67d844e98beb6915027811eee4e47f275ca9b4 (patch)
tree1266029e018bf0c4d09305bd5d2119800fdd0639
parentabe7c7484f9c381706f8c8ed816a80715d0ad644 (diff)
downloadnavit-fc67d844e98beb6915027811eee4e47f275ca9b4.tar.gz
Add:Core:Disallow buffer: as icon name
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5521 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/navit/graphics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/navit/graphics.c b/navit/navit/graphics.c
index 56a924d57..a345c39d7 100644
--- a/navit/navit/graphics.c
+++ b/navit/navit/graphics.c
@@ -726,7 +726,8 @@ struct graphics_image * graphics_image_new_scaled_rotated(struct graphics *gra,
this_->width=newwidth;
this_->height=newheight;
dbg(2,"Trying to load image '%s' for '%s' at %dx%d\n", new_name, path, newwidth, newheight);
- this_->priv=gra->meth.image_new(gra->priv, &this_->meth, new_name, &this_->width, &this_->height, &this_->hot, rotate);
+ if (strcmp(new_name,"buffer:"))
+ this_->priv=gra->meth.image_new(gra->priv, &this_->meth, new_name, &this_->width, &this_->height, &this_->hot, rotate);
if (this_->priv) {
dbg(1,"Using image '%s' for '%s' at %dx%d\n", new_name, path, newwidth, newheight);
g_free(new_name);