csstransform: Fix comparisons crashing

Transforms of different type are not equal.
This commit is contained in:
Benjamin Otte 2014-12-19 19:16:47 +01:00
parent d23f3254b7
commit 631688cf64

View File

@ -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: