aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/geometry.c2
-rw-r--r--src/partialator.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/geometry.c b/src/geometry.c
index fa66ed71..2329b0c7 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -311,9 +311,11 @@ void update_partialities(struct image *image,
if ( vals == NULL ) {
if ( n_notfound != NULL) (*n_notfound)++;
+ set_redundancy(refl, 0);
continue;
}
if ( n_found != NULL) (*n_found)++;
+ set_redundancy(refl, 1);
/* Transfer partiality stuff */
get_partial(vals, &r1, &r2, &p, &clamp1, &clamp2);
diff --git a/src/partialator.c b/src/partialator.c
index 070aeee3..b6bfe2fc 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -162,6 +162,9 @@ static int select_scalable_reflections(RefList *list, RefList *reference)
int sc = 1;
double v;
+ /* This means the reflection was not found on the last check */
+ if ( get_redundancy(refl) == 0 ) sc = 0;
+
if ( get_partiality(refl) < 0.1 ) sc = 0;
v = fabs(get_intensity(refl));
if ( v < 0.1 ) sc = 0;