projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0975a01
)
fixed reading of signed rational type with Exiv2
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Tue, 22 Apr 2008 17:40:29 +0000
(17:40 +0000)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Tue, 22 Apr 2008 17:40:29 +0000
(17:40 +0000)
src/exiv2.cc
patch
|
blob
|
history
diff --git
a/src/exiv2.cc
b/src/exiv2.cc
index
850ee24
..
5277e0c
100644
(file)
--- a/
src/exiv2.cc
+++ b/
src/exiv2.cc
@@
-496,6
+496,7
@@
ExifRational *exif_item_get_rational(ExifItem *item, gint *sign)
static ExifRational ret;
ret.num = v.first;
ret.den = v.second;
+ if (sign) *sign = (((Exiv2::Metadatum *)item)->typeId() == Exiv2::signedRational);
return &ret;
}
catch (Exiv2::AnyError& e) {