File tree Expand file tree Collapse file tree
org.knime.knip.base/src/org/knime/knip/base/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ public synchronized ImgPlus<T> getImgPlus() {
303303 }
304304 }
305305 }
306- final ImgPlus <T > imgPlus = new ImgPlus <T >(tmpImg , m_metadataAccess .get ().getMetadata ());
306+ final ImgPlus <T > imgPlus = new ImgPlus <>(tmpImg , m_metadataAccess .get ().getMetadata ());
307307 imgPlus .setSource (m_metadataAccess .get ().getMetadata ().getSource ());
308308
309309 return imgPlus ;
@@ -493,7 +493,7 @@ public int hashCode() {
493493 }
494494
495495 private String stringHashCode () {
496- return IMG_PLUS_CELL_KEY + getFileStore ().getFile ().getName () + m_fileMetadata .getOffset ();
496+ return IMG_PLUS_CELL_KEY + getFileStore ().getFile ().getAbsolutePath () + m_fileMetadata .getOffset ();
497497 }
498498
499499 /**
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ public synchronized Image getThumbnail(final RenderingHints renderingHints) {
375375 }
376376
377377 private String stringHashCode () {
378- return LABELING_CELL_KEY + getFileStore ().getFile ().getName () + m_fileMetadata .getOffset ();
378+ return LABELING_CELL_KEY + getFileStore ().getFile ().getAbsolutePath () + m_fileMetadata .getOffset ();
379379 }
380380
381381 private int getThumbnailWidth (final int height ) {
You can’t perform that action at this time.
0 commit comments