1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(eaxmple) fix lv_example_chart_2

This commit is contained in:
Gabor Kiss-Vamosi 2021-08-05 17:54:31 +02:00
parent a8427915c7
commit 89081c2d6e

View File

@ -46,7 +46,7 @@ static void draw_event_cb(lv_event_t * e)
}
/*Hook the division lines too*/
else if(dsc->part == LV_PART_MAIN) {
if(dsc->line_dsc == NULL) return;
if(dsc->line_dsc == NULL || dsc->p1 == NULL || dsc->p2 == NULL) return;
/*Vertical line*/
if(dsc->p1->x == dsc->p2->x) {