aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-05-23 16:30:12 +0200
committerThomas White <taw@physics.org>2014-05-23 16:30:12 +0200
commitf70470540c10ba6872bd013a88a08edef56f34c0 (patch)
tree40b48acc37559989ef6e2c67cade035ed5299894 /src
parent40eece704c37040e0333f2de22d35feeb09a30fb (diff)
Flag crystal as bad if scaling calculation goes wrong
Diffstat (limited to 'src')
-rw-r--r--src/hrs-scaling.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 0b95cea2..52ecceb0 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -130,6 +130,7 @@ static void run_scale_job(void *vwargs, int cookie)
if ( !isnan(g) && !isinf(g) ) {
crystal_set_osf(cr, g);
} else {
+ crystal_set_user_flag(cr, 1);
}
}