Fix crash with Canon m-raw files when raw crop in camconst.json is defined, #3533
This commit is contained in:
@@ -534,7 +534,7 @@ int RawImage::loadRaw (bool loadData, bool closeFile, ProgressListener *plistene
|
|||||||
free (raw_image);
|
free (raw_image);
|
||||||
raw_image = nullptr;
|
raw_image = nullptr;
|
||||||
} else {
|
} else {
|
||||||
if (cc && cc->has_rawCrop()) { // foveon images
|
if (is_foveon && cc && cc->has_rawCrop()) { // foveon images
|
||||||
int lm, tm, w, h;
|
int lm, tm, w, h;
|
||||||
cc->get_rawCrop(lm, tm, w, h);
|
cc->get_rawCrop(lm, tm, w, h);
|
||||||
left_margin = lm;
|
left_margin = lm;
|
||||||
|
Reference in New Issue
Block a user