From 276a86c740ff8a22a3199886bbc6984dbe0eb7a4 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Sun, 11 Mar 2018 14:52:51 +0100 Subject: [PATCH] RT crashes when viewing Nikon D1X files with demosaicer set to 'None' and hovering about the right or lower part of the image, fixes #4436 --- rtengine/rawimagesource.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index aef4447ce..0420c5b79 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -5349,6 +5349,10 @@ void RawImageSource::init () void RawImageSource::getRawValues(int x, int y, int rotate, int &R, int &G, int &B) { + if(d1x) { // Nikon D1x has special sensor. We just skip it + R = G = B = 0; + return; + } int xnew = x + border; int ynew = y + border; rotate += ri->get_rotateDegree();