Skip to content

Commit 954ef06

Browse files
committed
bugfix
See #205 (comment)
1 parent ac9201a commit 954ef06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bdv/tools/links/BdvPropertiesV0.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private static List< SourceConverterConfig > getSourceConverterConfigs( final Li
117117
{
118118
final ConverterSetup setup = converterSetups.getConverterSetup( soc );
119119
final boolean hasColor = setup.supportsColor();
120-
final int color = setup.getColor().get();
120+
final int color = hasColor ? setup.getColor().get() : 0;
121121
final double min = setup.getDisplayRangeMin();
122122
final double max = setup.getDisplayRangeMax();
123123
final Bounds bounds = converterSetups.getBounds().getBounds( setup );

0 commit comments

Comments
 (0)