-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chart) don't draw series lines with < 1 points
1 parent
a1b362c
commit 655f42b
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think the condition needs to be
chart->point_cnt < 2
to prevent the bug. See the following line:lvgl/src/extra/widgets/chart/lv_chart.c
Line 912 in 655f42b
If
chart->point_cnt
is 1 here,w * i
will be divided by 0.