diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-04-21 09:12:58 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-04-21 09:12:58 +0000 |
commit | 9733912bc210866eb36f3160f4de8f52c4a954b5 (patch) | |
tree | 9c1bd81c7d3dbe2cc940cfbbae05c42d1473d3c4 /navit | |
parent | 0cbf930ff11786d882929d8e61da88177df5acaa (diff) | |
download | navit-9733912bc210866eb36f3160f4de8f52c4a954b5.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')
-rw-r--r-- | navit/osd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/osd.c b/navit/osd.c index 690573a0a..9766f0913 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; |