aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r--src/hrs-scaling.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index b2d52f77..60a6c2f4 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -287,6 +287,8 @@ static double iterate_scale(struct image *images, int n, RefList *scalable,
vha = vha_arr[a];
rha = vha - image_a->osf * uha * Ih;
vc = Ih * rha;
+ vval = gsl_vector_get(v, a);
+ gsl_vector_set(v, a, vval+vc);
/* Determine the matrix component */
for ( b=0; b<n; b++ ) {
@@ -325,9 +327,6 @@ static double iterate_scale(struct image *images, int n, RefList *scalable,
}
- vval = gsl_vector_get(v, a);
- gsl_vector_set(v, a, vval+vc);
-
}
}