Fix issue with numeric values in XISF FITS header
This commit is contained in:
+2
-2
@@ -323,7 +323,7 @@ bool loadXISF(const QString &path, ImageInfoData &info, RawImage **image)
|
||||
auto fitskeywords = xisf.ReadFITSKeywords();
|
||||
for(auto fits : fitskeywords)
|
||||
{
|
||||
info.fitsHeader.append({fits.name.c_str(), fits.value.c_str(), fits.comment.c_str()});
|
||||
info.fitsHeader.append({fits.name.c_str(), fits.value.IsNumeral() ? QVariant(fits.value.ToDouble()) : QVariant(fits.value.c_str()), fits.comment.c_str()});
|
||||
}
|
||||
|
||||
if(floatType && bps == 32)
|
||||
@@ -498,7 +498,7 @@ bool readXISFHeader(const QString &path, ImageInfoData &info)
|
||||
auto fitskeywords = xisf.ReadFITSKeywords();
|
||||
for(auto fits : fitskeywords)
|
||||
{
|
||||
info.fitsHeader.append({fits.name.c_str(), fits.value.c_str(), fits.comment.c_str()});
|
||||
info.fitsHeader.append({fits.name.c_str(), fits.value.IsNumeral() ? QVariant(fits.value.ToDouble()) : QVariant(fits.value.c_str()), fits.comment.c_str()});
|
||||
}
|
||||
}
|
||||
catch (pcl::Error err)
|
||||
|
||||
Reference in New Issue
Block a user