diff --git a/src/imageinfodata.cpp b/src/imageinfodata.cpp index c73bab1..5e97ab1 100644 --- a/src/imageinfodata.cpp +++ b/src/imageinfodata.cpp @@ -30,6 +30,7 @@ FITSRecord::FITSRecord(const LibXISF::FITSKeyword &record) string.chop(1); string.remove(0, 1); } + string = string.trimmed(); bool isint; bool isdouble; double vald = string.toDouble(&isdouble);