fix ArrayIndexOutOfBoundsException in Table.insertRow() (fixes #5406)

This commit is contained in:
Ben Fry
2018-03-13 20:15:29 -04:00
parent 2ac50a99a5
commit 636c309bb5

View File

@@ -2428,8 +2428,10 @@ public class Table {
}
}
}
// Need to increment before setRow(), because it calls ensureBounds()
// https://github.com/processing/processing/issues/5406
++rowCount;
setRow(insert, columnData);
rowCount++;
}
/**