jframe: add missing child check in poly_render

This commit is contained in:
Lephenixnoir 2024-08-17 17:43:17 +02:00
parent 5a885b541f
commit 5e2488cdf4
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -284,6 +284,9 @@ static void jframe_poly_render(void *f0, int x, int y)
jframe *f = f0;
jwidget *child = frame_child(f);
if(!child)
return;
int child_w = jwidget_full_width(child);
int child_h = jwidget_full_height(child);