Fix bug in XISF indexing

This commit is contained in:
Dušan Poizl 2023-02-12 22:59:07 +01:00
parent cc7f56fc53
commit 1400fd2e32

@ -527,8 +527,8 @@ bool readXISFHeader(const QString &path, ImageInfoData &info)
try
{
LibXISF::XISFReader xisf;
const LibXISF::Image &image = xisf.getImage(0, false);
xisf.open(path);
const LibXISF::Image &image = xisf.getImage(0, false);
auto fitskeywords = image.fitsKeywords();
for(auto fits : fitskeywords)
@ -536,7 +536,7 @@ bool readXISFHeader(const QString &path, ImageInfoData &info)
info.fitsHeader.append(fits);
}
auto imageproperties = image.fitsKeywords();
auto imageproperties = image.imageProperties();
for(auto prop : imageproperties)
{
info.fitsHeader.append(prop);