Skip to content

Commit

Permalink
Only set the alternate (unflattened) image name if it is different
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Nov 10, 2023
1 parent 2de6968 commit 6959661
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,12 @@ else if (r instanceof ReaderWrapper) {
// TODO
}

seriesTable.put(NAME, retrieve.getImageName(index));
seriesTable.put(UNFLATTENED_NAME, unflattenedRetrieve.getImageName(series));
String flattenedName = retrieve.getImageName(index);
seriesTable.put(NAME, flattenedName);
String unflattenedName = unflattenedRetrieve.getImageName(series);
if ((flattenedName == null && unflattenedName != null) || !flattenedName.equals(unflattenedName)) {
seriesTable.put(UNFLATTENED_NAME, unflattenedName);
}
seriesTable.put(DESCRIPTION, retrieve.getImageDescription(index));

Length physicalX = retrieve.getPixelsPhysicalSizeX(index);
Expand Down

0 comments on commit 6959661

Please sign in to comment.