Skip to content

Commit b2bfdee

Browse files
awalter17imagejan
authored andcommitted
Fix removeColumns to allow removal of columns starting zero
1 parent 9bde616 commit b2bfdee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public ArrayList<C> removeColumns(final int col, final int count) {
188188
final int newColCount = oldColCount - count;
189189

190190
// copy data after the deleted range into the new position
191-
for (int oldC = col; oldC < oldColCount; oldC++) {
191+
for (int oldC = col+count; oldC < oldColCount; oldC++) {
192192
final int newC = oldC - count;
193193
set(newC, get(oldC));
194194
}

0 commit comments

Comments
 (0)