bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=58c3e676e804d147669ed93abf35a2709cc3d515

commit 58c3e676e804d147669ed93abf35a2709cc3d515
Author: Marcel Hollerbach <[email protected]>
Date:   Sat Aug 17 15:59:54 2019 +0200

    efl_ui_position_manager_common: fix buffer_id
    
    the buffer was accessed with the wrong id, buffer_id should be used.
    
    Reviewed-by: Cedric BAIL <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D9607
---
 src/lib/elementary/efl_ui_position_manager_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_position_manager_common.h 
b/src/lib/elementary/efl_ui_position_manager_common.h
index 9c97f2832f..e74e6d48f2 100644
--- a/src/lib/elementary/efl_ui_position_manager_common.h
+++ b/src/lib/elementary/efl_ui_position_manager_common.h
@@ -44,7 +44,7 @@ vis_change_segment(Api_Callback *cb, int a, int b, Eina_Bool 
flag)
           {
              EINA_SAFETY_ON_FALSE_RETURN(_fill_buffer(cb, MIN(a,b), len, NULL, 
data) >= 0);
           }
-        ent = data[i - MIN(a,b)].entity;
+        ent = data[buffer_id].entity;
         if (ent && !flag && (efl_ui_focus_object_focus_get(ent) || 
efl_ui_focus_object_child_focus_get(ent)))
           {
              //we should not make focused object invisible, rather move it to 
some parking lot

-- 


Reply via email to