csswidgetnode: Always return a valid style

This commit is contained in:
Benjamin Otte 2015-02-13 22:04:26 +01:00
parent b827725ace
commit 6f9969f4fe

View File

@ -38,6 +38,9 @@ gtk_css_widget_node_update_style (GtkCssNode *cssnode,
GtkCssChange pending_change,
GtkCssStyle *old_style)
{
if (old_style == NULL)
return GTK_CSS_NODE_CLASS (gtk_css_widget_node_parent_class)->update_style (cssnode, pending_change, old_style);
return NULL;
}