Changeset 2709


Ignore:
Timestamp:
04/30/07 14:09:17 (13 years ago)
Author:
curtis
Message:

Fix problem with C sub-dimensions not populated if sizeC is 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/FileStitcher.java

    r2707 r2709  
    850850      if (lenC[sno][i] > 1) cCount++; 
    851851    } 
    852     core.cLengths[sno] = new int[cCount]; 
    853     core.cTypes[sno] = new String[cCount]; 
     852    if (cCount == 0) { 
     853      core.cLengths[sno] = new int[] {1}; 
     854      core.cTypes[sno] = new String[] {FormatTools.CHANNEL}; 
     855    } 
     856    else { 
     857      core.cLengths[sno] = new int[cCount]; 
     858      core.cTypes[sno] = new String[cCount]; 
     859    } 
    854860    int c = 0; 
    855861    for (int i=0; i<cLengths.length; i++) { 
Note: See TracChangeset for help on using the changeset viewer.