[gtk+/wip/ebassi/gsk-renderer: 58/126] gsk: Fix pre-condition check



commit 8b3e93b64f434c1aad8f5ef9ad1296421e95ebff
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Jul 8 16:24:35 2016 +0100

    gsk: Fix pre-condition check
    
    We warn if the node is marked as not mutable.

 gsk/gskrendernode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c
index 5f16bfd..93bd2dd 100644
--- a/gsk/gskrendernode.c
+++ b/gsk/gskrendernode.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]