Limit image info to 1024 characters

This commit is contained in:
Dušan Poizl 2024-01-22 21:31:28 +01:00
parent 8c9c1d8d06
commit 18732a8cbf

@ -81,7 +81,7 @@ void ImageInfo::setInfo(const ImageInfoData &info)
QTreeWidgetItem *fitsHeader = new QTreeWidgetItem({tr("FITS Header")});
for(const FITSRecord &record : info.fitsHeader)
{
new QTreeWidgetItem(fitsHeader, {record.key, record.value.toString(), record.comment});
new QTreeWidgetItem(fitsHeader, {record.key, record.value.toString().left(1024), record.comment});
}
addTopLevelItem(fitsHeader);
}