aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_clip.c
diff options
context:
space:
mode:
authorMichael BOUCHAUD <michael.bouchaud@gmail.com>2011-06-17 10:55:26 +0000
committerMichael BOUCHAUD <michael.bouchaud@gmail.com>2011-06-17 10:55:26 +0000
commit396e256fc647661c959402eb899899b5ce1cd2af (patch)
treef96f431e0dabadce355ae4154d7c00a3013b1bfe /legacy/evas/src/lib/canvas/evas_clip.c
parentnote features that are disabled. (diff)
downloadefl-396e256fc647661c959402eb899899b5ce1cd2af.tar.gz
evas: warn dev to clip on a rect and not on an other object
SVN revision: 60443
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_clip.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_clip.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_clip.c b/legacy/evas/src/lib/canvas/evas_clip.c
index 9a69dc8b6c..95f30f20cb 100644
--- a/legacy/evas/src/lib/canvas/evas_clip.c
+++ b/legacy/evas/src/lib/canvas/evas_clip.c
@@ -179,7 +179,11 @@ evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
if (obj == clip) return;
if (evas_object_intercept_call_clip_set(obj, clip)) return;
// illegal to set anything but a rect as a clip
- if (clip->type != o_rect_type) return;
+ if (clip->type != o_rect_type)
+ {
+ ERR("For now a clip on other object than a rectangle is disabled\n");
+ return;
+ }
if (obj->smart.smart)
{
if (obj->smart.smart->smart_class->clip_set)