Skip to content

Commit

Permalink
fix Cells property
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyqus committed Dec 12, 2024
1 parent 819f2ac commit f17c068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/SS/Util/SSCellRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ public K[][] Cells
itemCls = itemCls.GetElementType();
for (int r = _height - 1; r >= 0; r--)
{
K[] row = (K[])Array.CreateInstance(itemCls, _width);
result[r] = (K[])Array.CreateInstance(itemCls, _width);
int flatIndex = _width * r;
Array.Copy(_flattenedArray, flatIndex, row, 0, _width);
Array.Copy(_flattenedArray, flatIndex, result[r], 0, _width);
}
return result;
}
Expand Down

0 comments on commit f17c068

Please sign in to comment.