yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=35ba7e43041dfc30365e1141db633bf6ab6dfa01

commit 35ba7e43041dfc30365e1141db633bf6ab6dfa01
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Wed Dec 2 15:50:00 2015 +0200

    Fix in _drop_target_pos() cb
    
    Callback was not properly called for drag_data == NULL
---
 src/bin/gui/editor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index aaf06d3..6ef8359 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -2153,10 +2153,9 @@ _drop_target_pos(void *data, Eo *obj, Evas_Coord x, 
Evas_Coord y, Elm_Xdnd_Actio
         else
           {
              const char *drop_data = dnd_drop_data_get();
-             if (!drop_data) return;
 
              /* Creation of the wdg */
-             if (!_dragged_wdg)
+             if (drop_data && !_dragged_wdg)
                {
                   _dragged_wdg = _editor_wdg_create(_active_context_get(), 
drop_data);
                }

-- 


Reply via email to