Skip to content

Commit

Permalink
get correct indices when removing entpy columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdornier committed May 8, 2024
1 parent 6779455 commit 39b0fa2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/fr/igred/omero/annotations/TableWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -881,8 +881,10 @@ public TableData createTable() {
truncateRow();
}

Collection<Integer> emptyColumns = getEmptyStringColumns();
emptyColumns.forEach(this::removeColumn);
ArrayList<Integer> emptyColumns = new ArrayList<>(getEmptyStringColumns());
for(int i = 0; i <emptyColumns.size(); i++){
removeColumn(emptyColumns.get(i)-i);
}

return new TableData(columns, data);
}
Expand Down

0 comments on commit 39b0fa2

Please sign in to comment.