aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/detector.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r--libcrystfel/src/detector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index 7689f5f8..419752a4 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -2208,6 +2208,8 @@ void mark_resolution_range_as_bad(struct image *image,
{
int i;
+ if ( isinf(min) && isinf(max) ) return; /* nothing to do */
+
for ( i=0; i<image->det->n_panels; i++ ) {
int fs, ss;