Skip to content

Commit 459436c

Browse files
awalter17imagejan
authored andcommitted
Modify removeRows to use zero indexing
1 parent cdca805 commit 459436c

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
@@ -322,7 +322,7 @@ public void removeRows(final int row, final int count) {
322322
final int oldRowCount = getRowCount();
323323
final int newRowCount = oldRowCount - count;
324324
// copy data after the deleted range into the new position
325-
for (int oldR = row; oldR < oldRowCount; oldR++) {
325+
for (int oldR = row+1; oldR < oldRowCount; oldR++) {
326326
final int newR = oldR - count;
327327
setRowHeader(newR, getRowHeader(oldR));
328328
for (int c = 0; c < getColumnCount(); c++) {

0 commit comments

Comments
 (0)