virtual hdf file mapping fix for fnum-1 images

This commit is contained in:
maliakal_d 2018-04-25 17:39:09 +02:00
parent 11475316fd
commit 1247f760f2

View File

@ -512,7 +512,7 @@ public:
//hyperslab
int numMajorHyperslab = (numf-1)/maxFramesPerFile;
if ((numf-1)%maxFramesPerFile) numMajorHyperslab++;
if (((numf-1)%maxFramesPerFile) || (numf == 1)) numMajorHyperslab++;
bool error = false;
uint64_t framesSaved = 0;
for (int j = 0; j < numMajorHyperslab; j++) {