diff options
Diffstat (limited to 'kstars')
-rw-r--r-- | kstars/kstars/fitsviewer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kstars/kstars/fitsviewer.cpp b/kstars/kstars/fitsviewer.cpp index a5e6143c..135c5cad 100644 --- a/kstars/kstars/fitsviewer.cpp +++ b/kstars/kstars/fitsviewer.cpp @@ -334,9 +334,13 @@ float * FITSViewer::loadData(const char *filename, float *buffer) case 32: for (int i=0; i < totalCount ; i++) { - FITS_GETBITPIX32(tempData, pixval_32); //pixval_32 = ntohl(pixval_32); - if (isnan(pixval_32)) pixval_32 = 0; + if (fits_nan_32(tempData)) { + pixval_32 = 0; + } + else { + FITS_GETBITPIX32(tempData, pixval_32); + } buffer[i] = pixval_32; tempData+=4; } |