diff options
author | Timm Bäder <mail@baedert.org> | 2021-10-17 12:15:34 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2021-10-17 12:15:34 +0200 |
commit | 085f0171c16547858ae250eb1ff3f3425d3a3e53 (patch) | |
tree | a2500455751ea1dfca3f950d6a5ae3e417e8c495 /gsk | |
parent | e7ac8275eaa9d85e1c37f0b96d1acc87f744c8b8 (diff) | |
download | gtk+-085f0171c16547858ae250eb1ff3f3425d3a3e53.tar.gz |
Ensure blur nodes have a positive blur radius
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/gskrendernodeimpl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index 28cb14ae64..d318fe9eec 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -4858,7 +4858,7 @@ gsk_blur_node_diff (GskRenderNode *node1, /** * gsk_blur_node_new: * @child: the child node to blur - * @radius: the blur radius + * @radius: the blur radius. Must be positive * * Creates a render node that blurs the child. * @@ -4873,6 +4873,7 @@ gsk_blur_node_new (GskRenderNode *child, float clip_radius; g_return_val_if_fail (GSK_IS_RENDER_NODE (child), NULL); + g_return_val_if_fail (radius >= 0, NULL); self = gsk_render_node_alloc (GSK_BLUR_NODE); node = (GskRenderNode *) self; |