diff options
author | Benjamin Otte <otte@redhat.com> | 2014-12-19 19:16:47 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-12-19 19:20:56 +0100 |
commit | 631688cf6457332e13ffdd1f9c18f3be3bc584c2 (patch) | |
tree | 4e04a63e52a124dfabd38bef865301723cc57459 /gtk/gtkcsstransformvalue.c | |
parent | d23f3254b7fcef0fc57739ce5cd548742870b119 (diff) | |
download | gtk+-631688cf6457332e13ffdd1f9c18f3be3bc584c2.tar.gz |
csstransform: Fix comparisons crashing
Transforms of different type are not equal.
Diffstat (limited to 'gtk/gtkcsstransformvalue.c')
-rw-r--r-- | gtk/gtkcsstransformvalue.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: |