From 2c3a41a81ad4f0862fc487126b0b097e922e1ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 6 Jun 2020 15:13:23 +0200 Subject: [PATCH] csstransformvalue: Make no-transform case explicit --- gtk/gtkcsstransformvalue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkcsstransformvalue.c b/gtk/gtkcsstransformvalue.c index 4f6f81bff4..f50873328a 100644 --- a/gtk/gtkcsstransformvalue.c +++ b/gtk/gtkcsstransformvalue.c @@ -1231,7 +1231,10 @@ GskTransform * gtk_css_transform_value_get_transform (const GtkCssValue *transform) { g_return_val_if_fail (transform->class == >K_CSS_VALUE_TRANSFORM, FALSE); - + + if (transform->n_transforms == 0) + return NULL; + return gtk_css_transform_value_compute_transform (transform); }