small change for Hombre

This commit is contained in:
heckflosse
2016-11-03 00:41:33 +01:00
parent 89901f4b36
commit 81fa149570
2 changed files with 6 additions and 3 deletions

View File

@@ -423,13 +423,16 @@ int RawImage::loadRaw (bool loadData, unsigned int &imageNum, bool closeFile, Pr
//***************** Read ALL raw file info
// set the number of the frame to extract. If the number is larger then number of existing frames - 1, dcraw will handle that correctly
shot_select = imageNum;
identify ();
fclose(ifp);
ifp = gfopen (ifname); // Maps to either file map or direct fopen
shot_select = imageNum;
shot_select = std::min(shot_select, std::max(is_raw, 1u) - 1);
identify();
std::cout << "israw : " << is_raw << std::endl;
// in case dcraw didn't handle the above mentioned case...
shot_select = std::min(shot_select, std::max(is_raw, 1u) - 1);
imageNum = shot_select;
if (!is_raw) {