Skip to content

Commit

Permalink
Surface: Bugfix, don't attempt passing NULL font
Browse files Browse the repository at this point in the history
  • Loading branch information
Zirias committed Aug 7, 2024
1 parent b08505e commit 5665f8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/xmoji/surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ void Surface_setWidget(void *self, void *widget)
{
s->widget = Object_ref(Widget_cast(widget));
Widget_setContainer(s->widget, s);
Widget_offerFont(s->widget, Widget_font(s));
Font *font = Widget_font(s);
if (font) Widget_offerFont(s->widget, font);
PSC_Event_register(Widget_sizeRequested(s->widget), s,
sizeRequested, 0);
sizeRequested(s, 0, 0);
Expand Down

0 comments on commit 5665f8b

Please sign in to comment.