set frame number before identify

This commit is contained in:
heckflosse
2016-11-01 15:09:36 +01:00
parent a6876e258a
commit 405e9a29a2

View File

@@ -13,7 +13,7 @@
#else #else
#include <netinet/in.h> #include <netinet/in.h>
#endif #endif
#include <iostream>
namespace rtengine namespace rtengine
{ {
@@ -422,6 +422,8 @@ int RawImage::loadRaw (bool loadData, bool closeFile, ProgressListener *plistene
raw_image = nullptr; raw_image = nullptr;
//***************** Read ALL raw file info //***************** Read ALL raw file info
setFrameNumber(frameNum);
identify (); identify ();
if (!is_raw) { if (!is_raw) {
@@ -435,8 +437,6 @@ int RawImage::loadRaw (bool loadData, bool closeFile, ProgressListener *plistene
return 2; return 2;
} }
setFrameNumber(frameNum);
if (flip == 5) { if (flip == 5) {
this->rotate_deg = 270; this->rotate_deg = 270;
} else if (flip == 3) { } else if (flip == 3) {