Petr Gajdos 2019-01-09 11:34:08 +00:00 committed by Git OBS Bridge
parent 2fba2715ca
commit da5e16073e

View File

@ -1,23 +0,0 @@
diff --git a/src/libraw_cxx.cpp b/src/libraw_cxx.cpp
index b5fe5eab..b1d6d3c0 100644
--- a/src/libraw_cxx.cpp
+++ b/src/libraw_cxx.cpp
@@ -3195,7 +3195,7 @@ int LibRaw::raw2image(void)
get_decoder_info(&decoder_info);
// Move saved bitmap to imgdata.image
- if (imgdata.idata.filters || P1.colors == 1)
+ if ((imgdata.idata.filters || P1.colors == 1) && imgdata.rawdata.raw_image)
{
if (IO.fuji_width)
{
@@ -3566,7 +3566,7 @@ int LibRaw::raw2image_ex(int do_subtract_black)
}
// Move saved bitmap to imgdata.image
- if (imgdata.idata.filters || P1.colors == 1)
+ if ((imgdata.idata.filters || P1.colors == 1) && imgdata.rawdata.raw_image)
{
if (IO.fuji_width)
{