From 022ac524cd87bd288f52a64ded89bf9398ae310b Mon Sep 17 00:00:00 2001 From: Frederic Devernay Date: Thu, 3 Jun 2021 18:38:59 -0700 Subject: [PATCH] ViewerInstance: fix copy-paste error --- Engine/ViewerInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/ViewerInstance.cpp b/Engine/ViewerInstance.cpp index 9260825b5c..1f1b28552a 100644 --- a/Engine/ViewerInstance.cpp +++ b/Engine/ViewerInstance.cpp @@ -2098,7 +2098,7 @@ findAutoContrastVminVmax_generic(const ImagePtr inputImage, maxi = std::max(std::max(r, g), b); break; case eDisplayChannelsY: - mini = r = 0.299 * r + 0.587 * g + 0.114 * b; + mini = 0.299 * r + 0.587 * g + 0.114 * b; maxi = mini; break; case eDisplayChannelsR: