Skip to content

Commit

Permalink
Img/Labeling Cell: Use full path for hashkey calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
gab1one committed Nov 24, 2017
1 parent bc7e9fa commit fed795d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public synchronized ImgPlus<T> getImgPlus() {
}
}
}
final ImgPlus<T> imgPlus = new ImgPlus<T>(tmpImg, m_metadataAccess.get().getMetadata());
final ImgPlus<T> imgPlus = new ImgPlus<>(tmpImg, m_metadataAccess.get().getMetadata());
imgPlus.setSource(m_metadataAccess.get().getMetadata().getSource());

return imgPlus;
Expand Down Expand Up @@ -493,7 +493,7 @@ public int hashCode() {
}

private String stringHashCode() {
return IMG_PLUS_CELL_KEY + getFileStore().getFile().getName() + m_fileMetadata.getOffset();
return IMG_PLUS_CELL_KEY + getFileStore().getFile().getAbsolutePath() + m_fileMetadata.getOffset();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public synchronized Image getThumbnail(final RenderingHints renderingHints) {
}

private String stringHashCode() {
return LABELING_CELL_KEY + getFileStore().getFile().getName() + m_fileMetadata.getOffset();
return LABELING_CELL_KEY + getFileStore().getFile().getAbsolutePath() + m_fileMetadata.getOffset();
}

private int getThumbnailWidth(final int height) {
Expand Down

0 comments on commit fed795d

Please sign in to comment.