Fix crash with Canon m-raw files when raw crop in camconst.json is defined, #3533

This commit is contained in:
heckflosse
2016-12-14 14:01:05 +01:00
parent 23f17bd9bc
commit cc4e7be2df

View File

@@ -534,7 +534,7 @@ int RawImage::loadRaw (bool loadData, bool closeFile, ProgressListener *plistene
free (raw_image);
raw_image = nullptr;
} else {
if (cc && cc->has_rawCrop()) { // foveon images
if (is_foveon && cc && cc->has_rawCrop()) { // foveon images
int lm, tm, w, h;
cc->get_rawCrop(lm, tm, w, h);
left_margin = lm;