Skip to content

Commit

Permalink
Fixed folders not opening as a stack for tiffs with no file info
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHazard committed Mar 19, 2024
1 parent 230d056 commit 2ede044
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public PRT(String fileName, boolean showImage){

// Back up method if no file info is available
if(info == null) {
PRT_NoFileInfo(fileName);
PRT_NoFileInfo(fileName, showImage);
return;
}
PRTC prtc = new PRTC();
Expand Down Expand Up @@ -128,7 +128,7 @@ public ImagePlus getImp() {
return this.imp;
}

void PRT_NoFileInfo(String fileName){
void PRT_NoFileInfo(String fileName, boolean showImage){
PRTC prtc = new PRTC();
long bits = prtc.getDataType(fileName);
long[] dims = prtc.getImageDims(fileName);
Expand Down Expand Up @@ -175,7 +175,8 @@ else if(bits == 64) {
}

ImagePlus imp = new ImagePlus(f.getName(),stack);
imp.show();
if(showImage) imp.show();
else this.imp = imp;

}

Expand Down

0 comments on commit 2ede044

Please sign in to comment.