Changeset 4102


Ignore:
Timestamp:
06/06/08 11:15:48 (12 years ago)
Author:
melissa
Message:

Fixed Mac-specific colorizing bug; closes #301.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Importer.java

    r4055 r4102  
    723723          if (colorize) { 
    724724            int[] openImages = WindowManager.getIDList(); 
    725             for (int i=0; i<openImages.length; i++) { 
    726               ImagePlus p = WindowManager.getImage(openImages[i]); 
     725            int nOpenImages = WindowManager.getImageCount(); 
     726            for (int i=0; i<nOpenImages; i++) { 
     727              ImagePlus p = 
     728                WindowManager.getImage(WindowManager.getNthImageID(1)); 
    727729              String title = p.getTitle(); 
    728730              if (title.startsWith(imp.getTitle()) && 
Note: See TracChangeset for help on using the changeset viewer.