[frogr] Fixed bug extracting GPS coords from Exif data



commit 1621b2d3321668ead5cfdb7ee2d844081b02475c
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Tue Aug 16 00:52:12 2011 +0200

    Fixed bug extracting GPS coords from Exif data

 src/frogr-picture-loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/frogr-picture-loader.c b/src/frogr-picture-loader.c
index 8e4134e..f2811df 100644
--- a/src/frogr-picture-loader.c
+++ b/src/frogr-picture-loader.c
@@ -220,7 +220,7 @@ get_gps_coordinate (ExifData *exif,
       c1 = exif_get_rational (entry->data, order);
       c2 = exif_get_rational (entry->data+8, order);
       c3 = exif_get_rational (entry->data+16, order);
-      ref = exif_get_short (refentry->data, order);
+      ref = refentry->data[0];
 
       /* Avoid ridiculous values */
       if (c1.denominator == 0 ||



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]