diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-11-18 00:02:20 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-11-18 00:04:23 -0500 |
commit | ce57150203f8b8fa4527984f178cac8496d8afa9 (patch) | |
tree | 448217e00567cfd77f1bce21efded0cd5b25290a /gsk/gskrendernodeimpl.c | |
parent | 203685a46a0b6f75bbc9c935610563d96b839c5a (diff) | |
download | gtk+-ce57150203f8b8fa4527984f178cac8496d8afa9.tar.gz |
gsk: Add an assertion to help static analysis
clang gets wild ideas about negative radii otherwise.
Diffstat (limited to 'gsk/gskrendernodeimpl.c')
-rw-r--r-- | gsk/gskrendernodeimpl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index 286269ec15..a797bafb49 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -4818,6 +4818,8 @@ blur_image_surface (cairo_surface_t *surface, int radius, int iterations) cairo_surface_t *tmp; int width, height; + g_assert (radius >= 0); + width = cairo_image_surface_get_width (surface); height = cairo_image_surface_get_height (surface); tmp = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height); |