Fix black thumb when applying a processing profile to a monochrome dng with wrong rgb_cam matrix

This commit is contained in:
heckflosse
2018-03-20 22:18:42 +01:00
parent 32d081add1
commit b29029527d
2 changed files with 6 additions and 1 deletions

View File

@@ -1593,7 +1593,7 @@ int RawImageSource::load (const Glib::ustring &fname)
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++) {
imatrices.rgb_cam[i][j] = ri->get_rgb_cam(i, j);
imatrices.rgb_cam[i][j] = ri->get_colors() == 1 ? (i == j) : ri->get_rgb_cam(i, j);
}
// compute inverse of the color transformation matrix