animatedstyle: just ref current style if timestamp the same
authorMatt Watson <mattdangerw@gmail.com>
Tue, 22 Mar 2016 08:04:38 +0000 (01:04 -0700)
committerMatt Watson <mattdangerw@gmail.com>
Fri, 8 Apr 2016 23:09:30 +0000 (16:09 -0700)
gtk/gtkcssanimatedstyle.c

index 04337e54c29b1555ff250db7cd562138e4d8b119..9847449f0843a8c0832cabbd38d28ac5d06aae58 100644 (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);