Skip to content

Commit 3a0fed8

Browse files
awalter17imagejan
authored andcommitted
Fix removeRows to start at specified row
Prior to this change the removal would end at the specified row, instead of starting from it.
1 parent b2bfdee commit 3a0fed8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/imagej/table/AbstractTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public void removeRows(final int row, final int count) {
324324
final int oldRowCount = getRowCount();
325325
final int newRowCount = oldRowCount - count;
326326
// copy data after the deleted range into the new position
327-
for (int oldR = row+1; oldR < oldRowCount; oldR++) {
327+
for (int oldR = row+count; oldR < oldRowCount; oldR++) {
328328
final int newR = oldR - count;
329329
setRowHeader(newR, getRowHeader(oldR));
330330
for (int c = 0; c < getColumnCount(); c++) {

0 commit comments

Comments
 (0)