Update LibXISF

This commit is contained in:
2023-03-09 18:35:38 +01:00
parent 1ce4f95f53
commit a9783f6030
3 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -20,10 +20,10 @@ FITSRecord::FITSRecord(const QByteArray &key, const QVariant &value, const QByte
FITSRecord::FITSRecord(const LibXISF::FITSKeyword &record)
{
key = record.name.toUtf8();
comment = record.comment.toUtf8();
key = record.name.c_str();
comment = record.comment.c_str();
QString string = record.value;
QString string = record.value.c_str();
if(string.startsWith('\'') && string.endsWith('\''))
{
string.chop(1);
@@ -45,9 +45,9 @@ FITSRecord::FITSRecord(const LibXISF::FITSKeyword &record)
FITSRecord::FITSRecord(const LibXISF::Property &property)
{
key = property.id.toUtf8();
value = property.value;
comment = property.comment.toUtf8();
key = property.id.c_str();
value = QString::fromStdString(property.value.toString());
comment = property.comment.c_str();
}
QByteArray FITSRecord::valueToByteArray() const