mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2024-12-29 13:03:40 +01:00
jframe: add missing child check in poly_render
This commit is contained in:
parent
5a885b541f
commit
5e2488cdf4
1 changed files with 3 additions and 0 deletions
|
@ -284,6 +284,9 @@ static void jframe_poly_render(void *f0, int x, int y)
|
||||||
jframe *f = f0;
|
jframe *f = f0;
|
||||||
jwidget *child = frame_child(f);
|
jwidget *child = frame_child(f);
|
||||||
|
|
||||||
|
if(!child)
|
||||||
|
return;
|
||||||
|
|
||||||
int child_w = jwidget_full_width(child);
|
int child_w = jwidget_full_width(child);
|
||||||
int child_h = jwidget_full_height(child);
|
int child_h = jwidget_full_height(child);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue