From 631688cf6457332e13ffdd1f9c18f3be3bc584c2 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 19 Dec 2014 19:16:47 +0100 Subject: csstransform: Fix comparisons crashing Transforms of different type are not equal. --- gtk/gtkcsstransformvalue.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk/gtkcsstransformvalue.c') diff --git a/gtk/gtkcsstransformvalue.c b/gtk/gtkcsstransformvalue.c index dbab6491ec..cae3c4ce4c 100644 --- a/gtk/gtkcsstransformvalue.c +++ b/gtk/gtkcsstransformvalue.c @@ -328,6 +328,9 @@ static gboolean gtk_css_transform_equal (const GtkCssTransform *transform1, const GtkCssTransform *transform2) { + if (transform1->type != transform2->type) + return FALSE; + switch (transform1->type) { case GTK_CSS_TRANSFORM_MATRIX: -- cgit v1.2.1