aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/post-refinement.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index b96aba66..5a6ba4dc 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -217,6 +217,7 @@ static void apply_shift(struct image *image, int k, double shift)
case REF_DIV :
image->div += shift;
+ if ( image->div < 0.0 ) image->div = 0.0;
break;
case REF_R :