From fd8569107bc1af6ffad70676af07aee8d7996673 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Wed, 11 Dec 2019 01:39:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Series->Data->Size`=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E4=B8=BA0=E5=90=8E=E8=AE=BE=E7=BD=AE=E6=97=A0?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + Editor/PropertyDrawers/SerieDrawer.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); }