csswidgetnode: Always return a valid style
This commit is contained in:
parent
b827725ace
commit
6f9969f4fe
@ -38,6 +38,9 @@ gtk_css_widget_node_update_style (GtkCssNode *cssnode,
|
|||||||
GtkCssChange pending_change,
|
GtkCssChange pending_change,
|
||||||
GtkCssStyle *old_style)
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user