diff --git a/org.knime.knip.base/src/org/knime/knip/base/data/img/ImgPlusCell.java b/org.knime.knip.base/src/org/knime/knip/base/data/img/ImgPlusCell.java index 99462990..69a1d34a 100644 --- a/org.knime.knip.base/src/org/knime/knip/base/data/img/ImgPlusCell.java +++ b/org.knime.knip.base/src/org/knime/knip/base/data/img/ImgPlusCell.java @@ -303,7 +303,7 @@ public synchronized ImgPlus getImgPlus() { } } } - final ImgPlus imgPlus = new ImgPlus(tmpImg, m_metadataAccess.get().getMetadata()); + final ImgPlus imgPlus = new ImgPlus<>(tmpImg, m_metadataAccess.get().getMetadata()); imgPlus.setSource(m_metadataAccess.get().getMetadata().getSource()); return imgPlus; @@ -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(); } /** diff --git a/org.knime.knip.base/src/org/knime/knip/base/data/labeling/LabelingCell.java b/org.knime.knip.base/src/org/knime/knip/base/data/labeling/LabelingCell.java index e9aad62d..1bc61e97 100644 --- a/org.knime.knip.base/src/org/knime/knip/base/data/labeling/LabelingCell.java +++ b/org.knime.knip.base/src/org/knime/knip/base/data/labeling/LabelingCell.java @@ -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) {