diff --git a/CHANGELOG.md b/CHANGELOG.md index 158b152e..3e0e19e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 更新日志 +* (2019.12.11) 修复`Series->Data->Size`重置为0后设置无效的问题 * (2019.12.06) 修复数据过小时`AxisLabel`直接科学计数法显示的问题 * (2019.12.04) 优化和完善数据更新`UpdateData`接口 * (2019.12.03) 增加圆环饼图的圆角支持,参数:`serie.arcShaped` diff --git a/Editor/PropertyDrawers/SerieDrawer.cs b/Editor/PropertyDrawers/SerieDrawer.cs index a94210c0..5526a12a 100644 --- a/Editor/PropertyDrawers/SerieDrawer.cs +++ b/Editor/PropertyDrawers/SerieDrawer.cs @@ -353,7 +353,7 @@ namespace XCharts var xWid = dataWid - 4; for (int i = 0; i < dimension; i++) { - if (i >= data.arraySize - 1) + while (i >= data.arraySize - 1) { data.InsertArrayElementAtIndex(data.arraySize); }