Fix:osd/core:Fix the odoemeter and stopwatch click handler fix :)
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 9 Dec 2010 18:17:57 +0000 (18:17 +0000)
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 9 Dec 2010 18:17:57 +0000 (18:17 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3763 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/osd/core/osd_core.c

index d367947..39aeccf 100644 (file)
@@ -385,10 +385,10 @@ osd_odometer_click(struct odometer *this, struct navit *nav, int pressed, int bu
     return;
   if (button != 1)
     return;
-  if (!!pressed == !!this->osd_item.pressed)
-    return;
   if (navit_ignore_button(nav))
     return;
+  if (!!pressed == !!this->osd_item.pressed)
+    return;
   if (pressed) { //single click handling
     if(this->bActive) { //being stopped
       this->last_coord.x = -1;
@@ -633,10 +633,10 @@ osd_stopwatch_click(struct stopwatch *this, struct navit *nav, int pressed, int
        return;
   if (button != 1)
     return;
-  if (!!pressed == !!this->osd_item.pressed)
-    return;
   if (navit_ignore_button(nav))
     return;
+  if (!!pressed == !!this->osd_item.pressed)
+    return;
 
        if (pressed) { //single click handling