Skip to content

Commit

Permalink
fix(gui): event target should be initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Mar 4, 2019
1 parent cb0612d commit ebbd128
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/widget_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ static int GetEventId(const char *event_name)

void LCUI_InitWidgetEvent(LCUI_WidgetEvent e, const char *name)
{
e->target = NULL;
e->type = GetEventId(name);
e->cancel_bubble = FALSE;
e->data = NULL;
Expand Down

0 comments on commit ebbd128

Please sign in to comment.