From fd853894e5ca6f165447c202f0fbcc89237842b0 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Tue, 7 Apr 2020 08:44:17 +0900 Subject: [PATCH] eo: only prepare a empty node Summary: do not take over complete vtables. This might fix wrong vtable settings when a type is not in the inheritance of another type, but the function is implemented. Reviewers: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11657 --- src/lib/eo/eo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 23a6b35ba0..4d3469c428 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -966,7 +966,7 @@ efl_class_functions_set(const Efl_Class *klass_id, const Efl_Object_Ops *object_ else { ERR("There is an API implemented, whoms type is not part of this class. %s vs. %s", klass->desc->name, required_klass->desc->name); - _vtable_take_over(&klass->vtable, &required_klass->vtable); + _vtable_prepare_empty_node(&klass->vtable, required_klass->vtable.chain[class_id].count, class_id); hitmap[class_id] = EINA_TRUE; }