Skip to content
Snippets Groups Projects
Commit 9bc71179 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

When constructing converter setups clip type min and max to [0..65535]

This makes initSetupRealTypeNonVolatile() and initSetupRealType() behave
the same.
parent baedf51c
No related branches found
No related tags found
No related merge requests found
......@@ -208,8 +208,8 @@ public class BigDataViewer
final List< ConverterSetup > converterSetups,
final List< SourceAndConverter< ? > > sources )
{
final double typeMin = type.getMinValue();
final double typeMax = type.getMaxValue();
final double typeMin = Math.max( 0, Math.min( type.getMinValue(), 65535 ) );
final double typeMax = Math.max( 0, Math.min( type.getMaxValue(), 65535 ) );
final RealARGBColorConverter< T > converter = RealARGBColorConverter.create( type, typeMin, typeMax );
converter.setColor( new ARGBType( 0xffffffff ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment