gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master ac7c1bb: Correct ordering of Fits program --wr


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master ac7c1bb: Correct ordering of Fits program --write and --update values
Date: Fri, 28 Dec 2018 12:20:42 -0500 (EST)

branch: master
commit ac7c1bb1196a10a163b19b4a354b81d05d48e583
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Correct ordering of Fits program --write and --update values
    
    These two options for the Fits program enable writing/updating of FITS
    keywords into a FITS header. But unlike what the manual claimed, they were
    writing the keywords in reverse order! This has been fixed now with a
    simple call to `gal_fits_key_list_reverse'.
    
    This fixes bug #55313.
---
 NEWS          | 16 ++++++++++++++++
 bin/fits/ui.c |  3 +++
 2 files changed, 19 insertions(+)

diff --git a/NEWS b/NEWS
index 2087f5b..6e62927 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,21 @@
 GNU Astronomy Utilities NEWS                          -*- outline -*-
 
+
+* Noteworthy changes in release X.X (library X.X.X) (YYYY-MM-DD) [stable]
+
+** New features
+
+** Removed features
+
+** Changed features
+
+** Bugs fixed
+  bug #55313: Fits program writing --write values in reverse order
+
+
+
+
+
 * Noteworthy changes in release 0.8 (library 6.0.0) (2018-12-28) [stable]
 
 ** New features
diff --git a/bin/fits/ui.c b/bin/fits/ui.c
index 7b5ef33..8e6dce7 100644
--- a/bin/fits/ui.c
+++ b/bin/fits/ui.c
@@ -428,6 +428,9 @@ ui_fill_fits_headerll(gal_list_str_t *input, 
gal_fits_list_key_t **output)
                             comment, 0, unit);
       free(original);
     }
+
+  /* Reverse the list */
+  gal_fits_key_list_reverse(output);
 }
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]