Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/gimplensfun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <exiv2/error.hpp>
#include <exiv2/image.hpp>
#include <exiv2/exif.hpp>
#include <exiv2/version.hpp>

#define VERSIONSTR "0.2.5-dev"

Expand Down Expand Up @@ -1034,7 +1035,11 @@ static void process_image (GimpDrawable *drawable) {
//
static int read_opts_from_exif(const char *filename) {

#if EXIV2_TEST_VERSION(0,28,0)
Exiv2::Image::UniquePtr Exiv2image;
#else
Exiv2::Image::AutoPtr Exiv2image;
#endif
Exiv2::ExifData exifData;

const lfCamera **cameras = 0;
Expand Down Expand Up @@ -1062,7 +1067,11 @@ static int read_opts_from_exif(const char *filename) {
return -1;
}
}
#if EXIV2_TEST_VERSION(0,28,0)
catch (Exiv2::Error& e) {
#else
catch (Exiv2::AnyError& e) {
#endif
if (DEBUG) {
g_print ("exception on reading data. \n");
}
Expand Down