Commit 6386eaf8 by Ivan Lan

fix: 空兼容

parent e977cb42
......@@ -42,7 +42,7 @@ class TalltyImportExport::ExportPayload
# 填充各个矩阵至等高
detached_matrixes = matrixes.map do |ragged_col|
col = ragged_col.uniq
while col.count < @max_matrix_height
while col.count < @max_matrix_height && col[0]
col.push(col[0].count.times.to_a)
end
Matrix[*col]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment