From 9b1b1ca8a75b7910ee4b3862d6ae3e96d9cd426c Mon Sep 17 00:00:00 2001 From: Wyatt Olson Date: Tue, 4 May 2010 11:30:38 -0600 Subject: [PATCH] Re-applied patch for issue #70 (must have been reverted by accident) --- rtengine/rtthumbnail.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/rtthumbnail.cc b/rtengine/rtthumbnail.cc index f11daa40f..7dce60e07 100644 --- a/rtengine/rtthumbnail.cc +++ b/rtengine/rtthumbnail.cc @@ -546,9 +546,9 @@ bool Thumbnail::writeImage (const Glib::ustring& fname, int format) { if (thumbImg->r[row][col]>max) max = thumbImg->r[row][col]; if (thumbImg->g[row][col]>max) - max = thumbImg->r[row][col]; + max = thumbImg->g[row][col]; if (thumbImg->b[row][col]>max) - max = thumbImg->r[row][col]; + max = thumbImg->b[row][col]; } if (max < 16384) max = 16384;