aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/predict-refine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c
index 5ac43133..b8a3893c 100644
--- a/libcrystfel/src/predict-refine.c
+++ b/libcrystfel/src/predict-refine.c
@@ -871,7 +871,7 @@ int refine_prediction(struct image *image, Crystal *cr,
total_shifts[0], total_shifts[1], total_shifts[2]);
crystal_add_notes(cr, tmp);
- if ( mille != NULL ) {
+ if ( (mille != NULL) && (n>4) ) {
crystfel_mille_delete_last_record(mille);
profile_start("mille-calc");
write_mille(mille, n, crystal_get_cell(cr), rps, image,