From 917f34587bc8d90bbc03475a25c66fb89b418385 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Fri, 5 Aug 2016 10:59:48 +0900 Subject: [PATCH] evas: Make safety check more lenient This is to avoid ERR messages such as "object is not an image!" that can happen when a legacy image function is called on an eo image (proxy, 3d, ...) object. Note: This does not fix any known issue, but it's probably a safer solution. --- src/lib/evas/canvas/evas_image_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_image_legacy.c b/src/lib/evas/canvas/evas_image_legacy.c index e682041..9134a8f 100644 --- a/src/lib/evas/canvas/evas_image_legacy.c +++ b/src/lib/evas/canvas/evas_image_legacy.c @@ -4,7 +4,7 @@ #include "evas_image.eo.h" #define EVAS_IMAGE_API(_o, ...) do { \ - if (EINA_UNLIKELY(!eo_isa(_o, EVAS_IMAGE_CLASS))) { \ + if (EINA_UNLIKELY(!eo_isa(_o, EFL_CANVAS_IMAGE_INTERNAL_CLASS))) { \ EINA_SAFETY_ERROR("object is not an image!"); \ return __VA_ARGS__; \ } } while (0) -- 2.7.4