[hkl] fix the hkl_lattice_set method
commitbfb6ef3eb3f524cf30b59dbe66c247ef258a1ec1
authorPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
Tue, 30 Jan 2024 14:00:51 +0000 (30 15:00 +0100)
committerPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
Tue, 30 Jan 2024 14:00:51 +0000 (30 15:00 +0100)
treed84f1257be3435744f5094f7af747820a432ee1b
parentcd41ed023a8b6038b2d095d6baf45d580a3aa2a3
[hkl] fix the hkl_lattice_set method

Now it restore the original lattice if something goes wrong.
hkl/hkl-lattice.c
tests/hkl-lattice-t.c