gsk: Fix pre-condition check

We warn if the node is marked as not mutable.
This commit is contained in:
Emmanuele Bassi 2016-07-08 16:24:35 +01:00
parent 51f05731a9
commit 9c86579e47

View File

@ -1268,7 +1268,7 @@ gsk_render_node_set_blend_mode (GskRenderNode *node,
GskBlendMode blend_mode)
{
g_return_if_fail (GSK_IS_RENDER_NODE (node));
g_return_if_fail (!node->is_mutable);
g_return_if_fail (node->is_mutable);
if (node->blend_mode == blend_mode)
return;