aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r--src/hdf5-file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index d6d646ed..5573267b 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -343,6 +343,9 @@ int hdf5_read(struct hdfile *f, struct image *image)
if ( image->f0 < 0.0 ) {
ERROR("Couldn't read incident intensity - using 1.0.\n");
image->f0 = 1.0;
+ image->f0_available = 0;
+ } else {
+ image->f0_available = 1;
}
debodge_saturation(f, image);