Fix display of raw values in navigator for xtrans

This commit is contained in:
heckflosse
2017-02-06 16:43:49 +01:00
parent c0cb0966f4
commit 2feb43f5d5
2 changed files with 2 additions and 2 deletions

View File

@@ -5479,7 +5479,7 @@ void RawImageSource::getRawValues(int x, int y, int rotate, int &R, int &G, int
ynew = H - 1 - ynew;
}
int c = FC(ynew,xnew);
int c = ri->getSensorType() == ST_FUJI_XTRANS ? ri->XTRANSFC(ynew,xnew) : ri->FC(ynew,xnew);
int val = round(rawData[ynew][xnew] / scale_mul[c]);
if(c == 0) {
R = val; G = 0; B = 0;