Changeset 6498


Ignore:
Timestamp:
06/08/10 10:10:18 (9 years ago)
Author:
melissa
Message:

Fixed bug introduced in r6497.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/in/ImagePlusReader.java

    r6497 r6498  
    267267          // merge image plane into existing stack if possible 
    268268          if (stackB != null) { 
    269             ip = ip.convertToByte(true); 
    270             stackB.addSlice(label, ip); 
     269            throw new FormatException( 
     270              "Found a FloatProcessor, expected a ByteProcessor"); 
    271271          } 
    272272          else if (stackS != null) { 
    273             ip = ip.convertToShort(true); 
    274             stackS.addSlice(label, ip); 
     273            throw new FormatException( 
     274              "Found a FloatProcessor, expected a ShortProcessor"); 
    275275          } 
    276276          else { 
Note: See TracChangeset for help on using the changeset viewer.