Check that we actually have gadcon_layout_data before trying to access it.

This fixes bug #196.


SVN revision: 31674
This commit is contained in:
Christopher Michael 2007-09-10 20:07:14 +00:00
parent cf7f274f97
commit f4725035d1
1 changed files with 4 additions and 2 deletions

View File

@ -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))