From f4725035d17d78062e6f09f6ee6cfe1b05e23f8a Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 10 Sep 2007 20:07:14 +0000 Subject: [PATCH] Check that we actually have gadcon_layout_data before trying to access it. This fixes bug #196. SVN revision: 31674 --- src/bin/e_gadcon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/e_gadcon.c b/src/bin/e_gadcon.c index dbd656feb..0122ca8e5 100644 --- a/src/bin/e_gadcon.c +++ b/src/bin/e_gadcon.c @@ -3459,7 +3459,8 @@ _e_gadcon_layout_smart_sync_clients(E_Gadcon *gc) gcc = l->data; _e_gadcon_client_save(gcc); } -} +} + static void _e_gadcon_client_current_position_sync(E_Gadcon_Client *gcc) { @@ -3468,7 +3469,8 @@ _e_gadcon_client_current_position_sync(E_Gadcon_Client *gcc) o = gcc->o_frame ? gcc->o_frame : gcc->o_base; bi = evas_object_data_get(o, "e_gadcon_layout_data"); - + if (!bi) return; + gcc->state_info.prev_pos = gcc->config.pos; gcc->state_info.prev_size = gcc->config.size; if (e_gadcon_layout_orientation_get(gcc->gadcon->o_container))