animatedstyle: just ref current style if timestamp the same

This commit is contained in:
Matt Watson 2016-03-22 01:04:38 -07:00
parent 6a88ac3b4c
commit 7b68bdb831

View File

@ -464,7 +464,7 @@ gtk_css_animated_style_new_advance (GtkCssAnimatedStyle *source,
gtk_internal_return_val_if_fail (GTK_IS_CSS_ANIMATED_STYLE (source), NULL);
gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE (base), NULL);
if (timestamp == 0)
if (timestamp == 0 || timestamp == source->current_time)
return g_object_ref (source->style);
gtk_internal_return_val_if_fail (timestamp > source->current_time, NULL);