summaryrefslogtreecommitdiff
path: root/navit/gui/internal
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-03-16 00:09:17 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-03-16 00:09:17 +0000
commit0bd41612aa2638bd5cd5c855beae03ca8bfd3ff4 (patch)
tree0aea58a18a35b7a36770584e69f9822ec3a27348 /navit/gui/internal
parent61dc98be53f59ea3f7ecf88f72d075d40be1ff33 (diff)
downloadnavit-0bd41612aa2638bd5cd5c855beae03ca8bfd3ff4.tar.gz
Add:core:Add some error messages for when connecting graphics to gui fails.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@6025 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/gui/internal')
-rw-r--r--navit/gui/internal/gui_internal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/gui/internal/gui_internal.c b/navit/gui/internal/gui_internal.c
index 197f5a828..23d4d24c6 100644
--- a/navit/gui/internal/gui_internal.c
+++ b/navit/gui/internal/gui_internal.c
@@ -2843,8 +2843,10 @@ static int gui_internal_set_graphics(struct gui_priv *this, struct graphics *gra
struct transformation *trans=navit_get_trans(this->nav);
win=graphics_get_data(gra, "window");
- if (! win)
+ if (! win) {
+ dbg(lvl_error, "failed to obtain window from graphics plugin, cannot set graphics\n");
return 1;
+ }
navit_ignore_graphics_events(this->nav, 1);
this->gra=gra;
this->win=win;