fix Leap 15 build OBS-URL: https://build.opensuse.org/request/show/1163483 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-image-viewer?expand=0&rev=21
16 lines
475 B
Diff
16 lines
475 B
Diff
--- a/qimage-plugins/libraw/rawiohandler.cpp
|
|
+++ b/qimage-plugins/libraw/rawiohandler.cpp
|
|
@@ -63,7 +63,12 @@ bool RawIOHandlerPrivate::load(QIODevice
|
|
|
|
stream = new Datastream(device);
|
|
raw = new LibRaw;
|
|
+
|
|
+#if LIBRAW_VERSION < LIBRAW_MAKE_VERSION(0, 21, 0)
|
|
raw->imgdata.params.use_rawspeed = 1;
|
|
+#else
|
|
+ raw->imgdata.rawparams.use_rawspeed = 1;
|
|
+#endif
|
|
if (raw->open_datastream(stream) != LIBRAW_SUCCESS) {
|
|
delete raw;
|
|
raw = nullptr;
|