Changeset 6479


Ignore:
Timestamp:
06/03/10 20:45:41 (9 years ago)
Author:
curtis
Message:

Merge 'Standard ImageJ' bugfix to 4.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/loci-plugins/src/loci/plugins/in/ImporterOptions.java

    r6477 r6479  
    196196  public void checkObsoleteOptions() { 
    197197    String options = Macro.getOptions(); 
     198 
     199    // check obsolete view options 
     200    String stackFormat = options == null ? 
     201      null : Macro.getValue(options, "view", null); 
     202    final String viewStandard = "Standard ImageJ"; 
     203    if (viewStandard.equals(stackFormat)) { 
     204      // Standard ImageJ -> Hyperstack 
     205      options = options.replaceFirst( 
     206        "\\[" + viewStandard + "\\]", VIEW_HYPERSTACK); 
     207      Macro.setOptions(options); 
     208      setStackFormat(VIEW_HYPERSTACK); 
     209    } 
     210 
     211    // check obsolete color options 
    198212    boolean mergeChannels = checkKey(options, "merge_channels"); 
    199213    boolean rgbColorize = checkKey(options, "rgb_colorize"); 
Note: See TracChangeset for help on using the changeset viewer.