From 5d5fbc69a4931e9760f75f7e6f43a55125eb7188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 18 Sep 2020 18:29:08 +0200 Subject: [PATCH] rendernodes: Enfore end > start for radial gradient nodes --- gsk/gskrendernodeimpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index efb49738b9..45734b5599 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -510,6 +510,7 @@ gsk_radial_gradient_node_new (const graphene_rect_t *bounds, g_return_val_if_fail (vradius > 0., NULL); g_return_val_if_fail (start >= 0., NULL); g_return_val_if_fail (end >= 0., NULL); + g_return_val_if_fail (end > start, NULL); g_return_val_if_fail (color_stops != NULL, NULL); g_return_val_if_fail (n_color_stops >= 2, NULL); g_return_val_if_fail (color_stops[0].offset >= 0, NULL); @@ -555,6 +556,7 @@ gsk_repeating_radial_gradient_node_new (const graphene_rect_t *bounds, g_return_val_if_fail (vradius > 0., NULL); g_return_val_if_fail (start >= 0., NULL); g_return_val_if_fail (end >= 0., NULL); + g_return_val_if_fail (end > start, NULL); g_return_val_if_fail (color_stops != NULL, NULL); g_return_val_if_fail (n_color_stops >= 2, NULL); g_return_val_if_fail (color_stops[0].offset >= 0, NULL);