jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=1cf5a80e40fed3e0f0fcbdbba352bde7439ab9c8

commit 1cf5a80e40fed3e0f0fcbdbba352bde7439ab9c8
Author: Daniel Zaoui <daniel.za...@samsung.com>
Date:   Thu Nov 12 15:09:12 2015 +0200

    Fix crash when no drop happens
---
 src/bin/gui/editor.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index cdb8286..33988de 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -1626,6 +1626,10 @@ _drop_target_drop(Gui_Widget *drop_target_wdg, Eo 
*canvas_drop_target, const cha
    DnD_Main_Obj_Info *di = NULL;
    const Gui_Widget *new_wdg = NULL;
    int drop_to_wdg = NO_DROP;
+   Gui_Context *ctx = _active_context_get();
+   if (!ctx) return EINA_FALSE;
+   const Gui_Session *session = gui_context_editor_session_get(ctx);
+
 
    _wdg_border_draw(NULL, EINA_FALSE, BORDER_DROP_TARGET);
    if (drop_target_wdg)
@@ -1663,10 +1667,6 @@ _drop_target_drop(Gui_Widget *drop_target_wdg, Eo 
*canvas_drop_target, const cha
      }
    if (drop_to_wdg == NO_DROP) goto end;
 
-   Gui_Context *ctx = _active_context_get();
-   if (!ctx) return EINA_FALSE;
-   const Gui_Session *session = gui_context_editor_session_get(ctx);
-
    /* Commeting out positioning of dropped widget.
     * This part makes sens when DnD inside window changes position. */
 #if 0

-- 


Reply via email to