[gtk/wip/baedert/for-master: 87/96] csstransformvalue: Make no-transform case explicit
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 87/96] csstransformvalue: Make no-transform case explicit
- Date: Wed, 10 Jun 2020 15:08:48 +0000 (UTC)
commit aaea3de92b4a275e2ad29d9c84b8c265f5a674f2
Author: Timm Bäder <mail baedert org>
Date: Sat Jun 6 15:13:23 2020 +0200
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]