Skip to content

Commit

Permalink
ImportProcess: return the name of the current file
Browse files Browse the repository at this point in the history
...not the name of the file that was initially passed to the reader.  In
the vast majority of cases, the two files are equal.  However, when
reading from OMERO, it is very important to use the name of the current
file as the name of the initial file will contain the user's login
credentials.

Closes #9440.
  • Loading branch information
melissalinkert committed Aug 3, 2012
1 parent e1425af commit 63b95ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public ImageReader getImageReader() {
/** Valid only after {@link ImportStep#READER}. */
public String getIdName() {
assertStep(ImportStep.READER);
return idName;
return getImageReader().getCurrentFile();
}
/** Valid only after {@link ImportStep#READER}. */
public Location getIdLocation() {
Expand Down

0 comments on commit 63b95ad

Please sign in to comment.