evas: Fix type checking for legacy APIs

This should fix canvas 3d examples (that were calling fill_set
and evas would reject with "object is not an image").
This commit is contained in:
Jean-Philippe Andre 2016-06-20 14:04:09 +09:00
parent 4fb0668c71
commit 17a51cffd3
1 changed files with 1 additions and 1 deletions

View File

@ -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)