Skip to content

Commit

Permalink
fix resource removal in annotation polisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmoho committed Aug 16, 2024
1 parent 294b3bc commit 9518897
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ public void polish(Annotation annotation) {
resources.add(resource);
}
}

// Remove all existing resources from the CV Term.
for (int i = 0; i < term.getResourceCount(); i++) {
for (int i = term.getResourceCount() -1; i >= 0 ; i--) {
term.removeResource(i);
}
// Add the updated set of resources, sorted alphabetically, back to the CV Term.
Expand Down

0 comments on commit 9518897

Please sign in to comment.