修复Editor下点击Data后数据会多一维的问题

This commit is contained in:
monitor1394
2020-05-30 18:04:01 +08:00
parent c08367fdac
commit bc6e5675e9

View File

@@ -446,7 +446,7 @@ namespace XCharts
var xWid = dataWid - 4;
for (int i = 0; i < dimension; i++)
{
while (i >= data.arraySize - 1)
while (i > data.arraySize - 1)
{
data.InsertArrayElementAtIndex(data.arraySize);
}