forked from AuroraMiddleware/gtk
css: Fix handling of transform values
When computing a transform value, there is nothing to do, but we still need to copy the matrix from src to dest, since it depends on the other transforms in the array whether we are using the src or the dest in the end. This fixes cases like -gtk-icon-transform: perspective(100px) matrix(1,2,...); which would otherwise end up with a zero matrix.
This commit is contained in:
parent
eb1a2268bb
commit
6ef3968227
@ -287,6 +287,7 @@ gtk_css_transform_compute (GtkCssTransform *dest,
|
||||
switch (src->type)
|
||||
{
|
||||
case GTK_CSS_TRANSFORM_MATRIX:
|
||||
memcpy (dest, src, sizeof (GtkCssTransform));
|
||||
return TRUE;
|
||||
case GTK_CSS_TRANSFORM_TRANSLATE:
|
||||
dest->translate.x = _gtk_css_value_compute (src->translate.x, property_id, provider, style, parent_style);
|
||||
|
Loading…
Reference in New Issue
Block a user