1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00

lv_btnm: fix crash

This commit is contained in:
Gabor Kiss-Vamosi 2019-03-17 04:55:18 +01:00
parent 855832b574
commit 9c499bdeae

View File

@ -1091,6 +1091,8 @@ static uint16_t get_button_from_point(lv_obj_t * btnm, lv_point_t * p)
static void invalidate_button_area(const lv_obj_t * btnm, uint16_t btn_idx)
{
if(btn_idx == LV_BTNM_BTN_NONE) return;
lv_area_t btn_area;
lv_area_t btnm_area;