jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=66f5b5c9aa5f3f96a0608aa642714ac05d88fcff

commit 66f5b5c9aa5f3f96a0608aa642714ac05d88fcff
Author: Yeongjong Lee <[email protected]>
Date:   Thu Oct 25 14:37:10 2018 +0900

    elm_conformant: fix wrong variable assignment
    
    Summary:
    event.object is always NULL. it may cause unexpected behavior.
    event.object should be assinged after sd->win is assinged.
    
    Reviewers: akanad, Jaehyun_Cho
    
    Reviewed By: Jaehyun_Cho
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D7208
---
 src/lib/elementary/elm_conform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_conform.c b/src/lib/elementary/elm_conform.c
index 0e51c94223..8ac03496bc 100644
--- a/src/lib/elementary/elm_conform.c
+++ b/src/lib/elementary/elm_conform.c
@@ -1004,8 +1004,8 @@ _elm_conformant_efl_object_constructor(Eo *obj, 
Elm_Conformant_Data *sd)
    efl_access_object_role_set(obj, EFL_ACCESS_ROLE_FILLER);
 
    Efl_Event event = {};
-   event.object = sd->win;
    sd->win = elm_widget_top_get(obj);
+   event.object = sd->win;
    _on_indicator_mode_changed(obj, &event);
    _on_rotation_changed(obj, &event);
 

-- 


Reply via email to