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

fix(chart): add the current series to hook_dsc->sub_part_ptr with line charts too

This commit is contained in:
Gabor Kiss-Vamosi 2021-03-02 23:50:15 +01:00
parent 978e8915da
commit bb8cce00d2

View File

@ -718,6 +718,7 @@ static void draw_series_line(lv_obj_t * obj, const lv_area_t * clip_area)
hook_dsc.part = LV_PART_ITEMS;
hook_dsc.line_dsc = &line_dsc_default;
hook_dsc.rect_dsc = &point_dsc_default;
hook_dsc.sub_part_ptr = ser;
for(i = 0; i < chart->point_cnt; i++) {
p1.x = p2.x;