aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hrs-scaling.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 171cd305..8a7c2099 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -319,6 +319,8 @@ static double iterate_scale(struct image *images, int n,
mc = (rha*vhb + vha*rhb - vha*vhb) / uh;
if ( isnan(mc) ) mc = 0.0; /* 0 / 0 = 0 */
+ if ( reference != NULL ) mc = 0.0;
+
if ( a == b ) {
mc += pow(Ih, 2.0) * uha;
}