aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-09-27 14:56:50 +0200
committerThomas White <taw@physics.org>2017-09-27 14:57:11 +0200
commit13bf35ac9021258b12c2603485acb1e9fab80c7e (patch)
tree3a5d954cdbc1b7e24d7f6adf2e980bd9ff6cec16 /libcrystfel
parentee083bde159d83a51f7e562d3a88ad78c8a77617 (diff)
remove_flagged_crystals(): Remove multiple bad crystals
A silly bug
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index de27308c..0dda66ed 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -304,6 +304,7 @@ int remove_flagged_crystals(struct image *image)
}
image->n_crystals--;
n_bad++;
+ i--;
}
}