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



commit 03d3ceee49bc585deaf2c4095d61b84af8c5c022
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]