Skip to content

Commit

Permalink
Fix type in state.removeAll which caused some issues with SourceGroup(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKiaru authored and tpietzsch committed May 23, 2024
1 parent d876888 commit a41a02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/bdv/viewer/BasicViewerState.java
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ public boolean removeSources( final Collection< ? extends SourceAndConverter< ?

boolean sourceToGroupAssignmentChanged = false;
for ( final GroupData groupData : groupData.values() )
sourceToGroupAssignmentChanged |= groupData.sources.removeAll( sources );
sourceToGroupAssignmentChanged |= groupData.sources.removeAll( collection );

if ( currentSourceChanged )
currentSource = sources.isEmpty() ? null : sources.get( 0 );
Expand Down

0 comments on commit a41a02b

Please sign in to comment.