Merge latest bugfixes
This commit is contained in:
@@ -957,10 +957,10 @@ bool Thumbnail::writeImage (const Glib::ustring& fname, int format) {
|
||||
// If it's not gamma corrected (usually a JPG) we take the normal maximum
|
||||
max=0;
|
||||
|
||||
for (int row=0; row<thumbImg->height; row++)
|
||||
for (int col=0; col<thumbImg->width; col++) {
|
||||
if (thumbImg->r[row][col]>max) max = thumbImg->r[row][col];
|
||||
if (thumbImg->g[row][col]>max) max = thumbImg->g[row][col];
|
||||
for (int row=0; row<thumbImg->height; row++)
|
||||
for (int col=0; col<thumbImg->width; col++) {
|
||||
if (thumbImg->r[row][col]>max) max = thumbImg->r[row][col];
|
||||
if (thumbImg->g[row][col]>max) max = thumbImg->g[row][col];
|
||||
if (thumbImg->b[row][col]>max) max = thumbImg->b[row][col];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user