Fix calculation of duration for ClutterState default transitions

https://bugzilla.gnome.org/show_bug.cgi?id=659200
This commit is contained in:
Craig R. Hughes 2011-09-19 09:30:00 -07:00 committed by Emmanuele Bassi
parent 14bd6eaad4
commit fcc2ab7be5

View File

@ -1969,8 +1969,13 @@ clutter_state_get_duration (ClutterState *state,
if (target_state != NULL) if (target_state != NULL)
{ {
if (source_state_name) if (source_state_name)
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations, {
source_state_name)); ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
source_state_name));
if(!ret)
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
NULL));
}
else else
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations, ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
NULL)); NULL));