mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
csstransformvalue: Make no-transform case explicit
This commit is contained in:
parent
203bb42cc1
commit
2c3a41a81a
@ -1232,6 +1232,9 @@ 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