mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
csstransformvalue: Make no-transform case explicit
This commit is contained in:
parent
203bb42cc1
commit
2c3a41a81a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user