From 916e42bcef074f86f37e07cd90b87a7af69b65a4 Mon Sep 17 00:00:00 2001 From: torger Date: Mon, 25 Aug 2014 20:39:55 +0200 Subject: [PATCH] Issue 2471: fix issue with picking out wrong maximum white for multiple white levels --- rtengine/rawimage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/rawimage.cc b/rtengine/rawimage.cc index 855f0584c..c61d5f556 100755 --- a/rtengine/rawimage.cc +++ b/rtengine/rawimage.cc @@ -244,7 +244,7 @@ skip_block: ; if (this->get_white(c) != this->get_white(0)) { multiple_whites = true; if (this->get_white(c) > largest_white) { - largest_white = this->get_white(0); + largest_white = this->get_white(c); } } }