summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;