csstransformvalue: Make no-transform case explicit

This commit is contained in:
Timm Bäder 2020-06-06 15:13:23 +02:00
parent 203bb42cc1
commit 2c3a41a81a

View File

@ -1231,7 +1231,10 @@ GskTransform *
gtk_css_transform_value_get_transform (const GtkCssValue *transform)
{
g_return_val_if_fail (transform->class == &GTK_CSS_VALUE_TRANSFORM, FALSE);
if (transform->n_transforms == 0)
return NULL;
return gtk_css_transform_value_compute_transform (transform);
}