[gtk+] csstransform: Fix comparisons crashing
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] csstransform: Fix comparisons crashing
- Date: Fri, 19 Dec 2014 18:51:06 +0000 (UTC)
commit 631688cf6457332e13ffdd1f9c18f3be3bc584c2
Author: Benjamin Otte <otte redhat com>
Date: Fri Dec 19 19:16:47 2014 +0100
csstransform: Fix comparisons crashing
Transforms of different type are not equal.
gtk/gtkcsstransformvalue.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcsstransformvalue.c b/gtk/gtkcsstransformvalue.c
index dbab649..cae3c4c 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]