devilhorns pushed a commit to branch master.
commit ff60a233d236c4b305e803e2efcf4d831f2668ee
Author: Chris Michael <[email protected]>
Date: Mon Jul 8 08:22:23 2013 +0100
Fix unintended operator precedence... I do believe != 4 is what was
wanted here...Or (!(ob->map->cur.map->count == 4)) ... but not much
difference either way ;)
NB: Fixes Coverity CID1039673
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/evas/canvas/evas_events.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/evas/canvas/evas_events.c
b/src/lib/evas/canvas/evas_events.c
index 93e892f..420f133 100644
--- a/src/lib/evas/canvas/evas_events.c
+++ b/src/lib/evas/canvas/evas_events.c
@@ -19,7 +19,8 @@ _evas_event_havemap_adjust(Evas_Object *eo_obj EINA_UNUSED,
Evas_Object_Protecte
_evas_event_havemap_adjust(obj->smart.parent, smart_parent_obj, x, y,
mouse_grabbed);
}
- if ((!obj->map->cur.usemap) || (!obj->map->cur.map) ||
(!obj->map->cur.map->count == 4))
+ if ((!obj->map->cur.usemap) || (!obj->map->cur.map) ||
+ (obj->map->cur.map->count != 4))
return;
//FIXME: Unless map_coords_get() supports grab mode and extrapolate coords
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev