From 3863aa643f604f17b79684093fd34e7a67b093fa Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 28 Oct 2006 00:03:29 +0200 Subject: fix ImageMetaData classes --- src/ExifImageMetaData.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/ExifImageMetaData.cxx') diff --git a/src/ExifImageMetaData.cxx b/src/ExifImageMetaData.cxx index 05a43d5..1ba215e 100644 --- a/src/ExifImageMetaData.cxx +++ b/src/ExifImageMetaData.cxx @@ -47,13 +47,13 @@ ExifImageMetaData::load_image(char *name) { if (p) { while (fgets(buf, sizeof(buf), p) != NULL) { - if (sscanf(buf, "%d\t%s", &id, val) != 2) { + if (sscanf(buf, "%x\t%s", &id, val) != 2) { continue; } - + switch(id) { case FOCAL_LENGTH_IN_35MM_FILM: - focallength_sensor_ratio = atof(val) / 35; + focallength_sensor_ratio = atof(val) / 35.0; break; } } @@ -68,3 +68,8 @@ ExifImageMetaData::load_image(char *name) { return 0; } + +int +ExifImageMetaData::save_image(char *name) { +} + -- cgit v1.2.3