Small fixes
This commit is contained in:
+5
-3
@@ -190,8 +190,10 @@ bool loadFITS(const QString path, ImageInfoData &info, std::shared_ptr<RawImage>
|
||||
{
|
||||
fitsfile *file;
|
||||
int status = 0;
|
||||
int type;
|
||||
fits_open_image(&file, path.toLocal8Bit().data(), READONLY, &status);
|
||||
int type = -1;
|
||||
fits_open_diskfile(&file, path.toLocal8Bit().data(), READONLY, &status);
|
||||
int hudtype = IMAGE_HDU;
|
||||
fits_movabs_hdu(file, 1, &hudtype, &status);
|
||||
fits_get_hdu_type(file, &type, &status);
|
||||
|
||||
if(type == IMAGE_HDU)
|
||||
@@ -423,7 +425,7 @@ void LoadRunable::run()
|
||||
}
|
||||
catch(std::exception e)
|
||||
{
|
||||
qDebug() << e.what();
|
||||
qDebug() << m_file << e.what();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user