summaryrefslogtreecommitdiff
path: root/gtk/gtkcsswidgetnode.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-13 22:04:26 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:31 +0100
commit6f9969f4fe112006a9316575d3beeea4a4ed6c60 (patch)
treef88a78a28a8626d00ea51c2185527128078fdb15 /gtk/gtkcsswidgetnode.c
parentb827725aceabfc88e33f80eec78ece029f2553c6 (diff)
downloadgtk+-6f9969f4fe112006a9316575d3beeea4a4ed6c60.tar.gz
csswidgetnode: Always return a valid style
Diffstat (limited to 'gtk/gtkcsswidgetnode.c')
-rw-r--r--gtk/gtkcsswidgetnode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c
index d142c93e10..eb640ea6ac 100644
--- a/gtk/gtkcsswidgetnode.c
+++ b/gtk/gtkcsswidgetnode.c
@@ -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;
}