forked from enlightenment/enlightenment
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:
parent
cf7f274f97
commit
f4725035d1
|
@ -3460,6 +3460,7 @@ _e_gadcon_layout_smart_sync_clients(E_Gadcon *gc)
|
||||||
_e_gadcon_client_save(gcc);
|
_e_gadcon_client_save(gcc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_e_gadcon_client_current_position_sync(E_Gadcon_Client *gcc)
|
_e_gadcon_client_current_position_sync(E_Gadcon_Client *gcc)
|
||||||
{
|
{
|
||||||
|
@ -3468,6 +3469,7 @@ _e_gadcon_client_current_position_sync(E_Gadcon_Client *gcc)
|
||||||
|
|
||||||
o = gcc->o_frame ? gcc->o_frame : gcc->o_base;
|
o = gcc->o_frame ? gcc->o_frame : gcc->o_base;
|
||||||
bi = evas_object_data_get(o, "e_gadcon_layout_data");
|
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_pos = gcc->config.pos;
|
||||||
gcc->state_info.prev_size = gcc->config.size;
|
gcc->state_info.prev_size = gcc->config.size;
|
||||||
|
|
Loading…
Reference in New Issue