summaryrefslogtreecommitdiff
path: root/navit/osd.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-21 09:12:58 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-21 09:12:58 +0000
commitaafb578bc3f41f67bb107daca316c125751415a1 (patch)
tree9c1bd81c7d3dbe2cc940cfbbae05c42d1473d3c4 /navit/osd.c
parent8d92c3cec5e2d1f6c8b5d14974103ff8ed2d91af (diff)
downloadnavit-svn-aafb578bc3f41f67bb107daca316c125751415a1.tar.gz
Fix:Core:Ignore osd clicks if there is no command
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4445 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd.c')
-rw-r--r--navit/osd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/osd.c b/navit/osd.c
index 690573a0..9766f091 100644
--- a/navit/osd.c
+++ b/navit/osd.c
@@ -104,6 +104,8 @@ void
osd_std_click(struct osd_item *this, struct navit *nav, int pressed, int button, struct point *p)
{
struct point bp = this->p;
+ if (!this->command || !this->command[0])
+ return;
osd_wrap_point(&bp, nav);
if ((p->x < bp.x || p->y < bp.y || p->x > bp.x + this->w || p->y > bp.y + this->h || !this->configured) && !this->pressed)
return;