Changeset 2803


Ignore:
Timestamp:
05/22/07 15:32:15 (13 years ago)
Author:
curtis
Message:

Fix bug in ImageJ reader with relative path names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/ImageJReader.java

    r2701 r2803  
    9797 
    9898    try { 
    99       Location file = new Location(currentId); 
     99      Location file = new Location(currentId).getAbsoluteFile(); 
    100100      r.setVar("dir", file.getParent() + System.getProperty("file.separator")); 
    101101      r.setVar("name", file.getName()); 
     
    115115          // probably ImageJ version < 1.38f 
    116116        } 
     117      } 
     118      if (r.getVar("image") == null) { 
     119        throw new FormatException("ImageJ cannot read this image"); 
    117120      } 
    118121      r.exec("size = image.getStackSize()"); 
Note: See TracChangeset for help on using the changeset viewer.