Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
KPhotoAlbum
Commits
ee9e93ba
Commit
ee9e93ba
authored
Dec 04, 2012
by
Rex Dieter
Browse files
fix build for newer libkdcraw api
CCBUG: 307148
parent
dc208c79
Changes
1
Hide whitespace changes
Inline
Side-by-side
ImageManager/RawImageDecoder.cpp
View file @
ee9e93ba
...
...
@@ -24,6 +24,7 @@
#ifdef HAVE_KDCRAW
# include <libkdcraw/kdcraw.h>
# include <libkdcraw/rawfiles.h>
# include <libkdcraw/version.h>
#endif
#include <kdebug.h>
#include <DB/FileName.h>
...
...
@@ -37,7 +38,11 @@ bool RAWImageDecoder::_decode( QImage *img, const DB::FileName& imageFile, QSize
Q_UNUSED
(
dim
);
#ifdef HAVE_KDCRAW
#if KDCRAW_VERSION >= 0x020200
if
(
!
KDcrawIface
::
KDcraw
::
loadRawPreview
(
*
img
,
imageFile
.
absolute
()
)
)
#else
if
(
!
KDcrawIface
::
KDcraw
::
loadDcrawPreview
(
*
img
,
imageFile
.
absolute
()
)
)
#endif
return
false
;
// FIXME: The preview data for Canon's image is always returned in its non-rotated form by libkdcraw, ie. KPA should do the rotation.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment