Skip to content

Commit

Permalink
fix(eaxmple) fix lv_example_chart_2
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Aug 5, 2021
1 parent a842791 commit 89081c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/widgets/chart/lv_example_chart_2.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 89081c2

Please sign in to comment.