Skip to content

Commit

Permalink
fixed reading of signed rational type with Exiv2
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Apr 22, 2008
1 parent 0975a01 commit 17fd8de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/exiv2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 17fd8de

Please sign in to comment.