diff --git a/ChangeLog b/ChangeLog index 25cb3eec92..c9c3f3dbbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-17 Sven Neumann + + * plug-ins/jpeg/jpeg-load.c (load_image): fixed build for + HAVE_EXIF being undefined. + 2007-07-17 Sven Neumann * app/base/tile-manager-preview.[ch]: added diff --git a/plug-ins/jpeg/jpeg-load.c b/plug-ins/jpeg/jpeg-load.c index 1fa8c901ad..3b0ee28a81 100644 --- a/plug-ins/jpeg/jpeg-load.c +++ b/plug-ins/jpeg/jpeg-load.c @@ -318,6 +318,8 @@ load_image (const gchar *filename, g_string_free (comment_buffer, TRUE); } + +#ifdef HAVE_EXIF /* if we found any EXIF block, then attach the metadata to the image */ if (exif_data) { @@ -326,6 +328,7 @@ load_image (const gchar *filename, exif_data_unref (exif_data); exif_data = NULL; } +#endif /* Step 5.2: check for XMP metadata in APP1 markers (after EXIF) */ for (marker = cinfo.marker_list; marker; marker = marker->next) @@ -491,8 +494,10 @@ load_image (const gchar *filename, gimp_drawable_detach (drawable); gimp_image_add_layer (image_ID, layer_ID, 0); +#ifdef HAVE_EXIF if (orientation > 0) jpeg_exif_rotate (image_ID, orientation); +#endif return image_ID; }