Changeset 6255


Ignore:
Timestamp:
05/10/10 13:52:00 (10 years ago)
Author:
melissa
Message:

Ported r6254 to 4.1 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/components/bio-formats/src/loci/formats/in/FluoviewReader.java

    r5678 r6255  
    314314    if (getSizeZ() > getImageCount()) core[0].sizeZ = getImageCount(); 
    315315    if (getSizeT() > getImageCount()) core[0].sizeT = getImageCount(); 
     316    if (getSizeZ() * getSizeC() * getSizeT() > getImageCount()) { 
     317      int diff = getSizeZ() * getSizeC() * getSizeT() - getImageCount(); 
     318      if (diff == getSizeC()) { 
     319        if (getSizeZ() > 1) core[0].sizeZ--; 
     320        else if (getSizeT() > 1) core[0].sizeT--; 
     321        else core[0].sizeC /= getSizeC(); 
     322      } 
     323    } 
    316324 
    317325    if (getImageCount() == 1 && (getSizeT() == getSizeY() || 
Note: See TracChangeset for help on using the changeset viewer.