diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2015-01-09 00:07:28 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2015-01-09 00:07:28 +0000 |
commit | 61fe2bf281e656e7ea7bfb10d34cf1e8f17f4b67 (patch) | |
tree | eccbf12f270d1aae6cb692ebba54f2f6feade66f /navit/graphics.c | |
parent | 8abde8d1c8adcafcf9e42e3e185798e1071e7ba5 (diff) | |
download | navit-61fe2bf281e656e7ea7bfb10d34cf1e8f17f4b67.tar.gz |
Fix:core:Report errors if graphics or event system is not present.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5996 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r-- | navit/graphics.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index 53a1984ad..2858de828 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -232,12 +232,15 @@ struct graphics * graphics_new(struct attr *parent, struct attr **attrs) struct graphics_priv * (*graphicstype_new)(struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl); if (! (type_attr=attr_search(attrs, NULL, attr_type))) { + dbg(lvl_error,"Graphics plugin type is not set.\n"); return NULL; } graphicstype_new=plugin_get_graphics_type(type_attr->u.str); - if (! graphicstype_new) + if (! graphicstype_new) { + dbg(lvl_error,"Failed to load graphics plugin %s.\n", type_attr->u.str); return NULL; + } this_=g_new0(struct graphics, 1); this_->attrs=attr_list_dup(attrs); this_->cbl=callback_list_new(); |