From: Timm Bäder Date: Wed, 14 Mar 2018 09:51:55 +0000 (+0100) Subject: snapshot: Ignore 0 sized clip nodes X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~991 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5f2283c0abf7cdd69aaa19a9199d1673965454cf;p=gtk4.git snapshot: Ignore 0 sized clip nodes This may happen due to the intersection before. --- diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c index a1e41652a6..1c0934612a 100644 --- a/gtk/gtksnapshot.c +++ b/gtk/gtksnapshot.c @@ -762,6 +762,10 @@ gtk_snapshot_collect_rounded_clip (GtkSnapshot *snapshot, clip_node = gsk_rounded_clip_node_new (node, &state->data.rounded_clip.bounds); } + if (clip_node->bounds.size.width == 0 || + clip_node->bounds.size.height == 0) + return NULL; + if (name) gsk_render_node_set_name (clip_node, name);