mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(chart) don't draw series lines with < 1 points
Releated to https://forum.lvgl.io/t/maybe-it-has-bug-in-draw-chart-line-data/6394
This commit is contained in:
parent
a1b362c986
commit
655f42b852
@ -839,6 +839,7 @@ static void draw_series_line(lv_obj_t * obj, const lv_area_t * clip_area)
|
||||
if(_lv_area_intersect(&com_area, &obj->coords, clip_area) == false) return;
|
||||
|
||||
lv_chart_t * chart = (lv_chart_t *)obj;
|
||||
if(chart->point_cnt < 1) return;
|
||||
|
||||
uint16_t i;
|
||||
lv_point_t p1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user