herdsman pushed a commit to branch master.

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

commit b6cf83719695d063b8dc516ed1ca8f153bb091fd
Author: Daniel Hirt <daniel.h...@samsung.com>
Date:   Tue Nov 29 09:30:36 2016 +0200

    Ui text: fix selection handler behavior
---
 src/lib/elementary/efl_ui_text.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c
index 2410e8c..1c28d01 100644
--- a/src/lib/elementary/efl_ui_text.c
+++ b/src/lib/elementary/efl_ui_text.c
@@ -549,6 +549,12 @@ _update_selection_handler(Eo *obj)
    Evas_Coord ex, ey, eh;
    Evas_Coord ent_x, ent_y;
 
+   if (!sd->have_selection)
+     {
+        _hide_selection_handler(obj);
+        return;
+     }
+
    if (!sd->sel_handler_disabled)
      {
         Eina_Rectangle *rect;
@@ -3555,10 +3561,7 @@ _efl_ui_text_efl_gfx_visible_set(Eo *obj, 
Efl_Ui_Text_Data *sd EINA_UNUSED, Eina
      return;
 
    efl_gfx_visible_set(efl_super(obj, MY_CLASS), vis);
-   if (vis)
-     _update_selection_handler(obj);
-   else if (sd->have_selection)
-     _hide_selection_handler(obj);
+   if (vis) _update_selection_handler(obj);
 }
 
 EOLIAN static void

-- 


Reply via email to