[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:47:13 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=54ac67d
The following commit has been merged in the master branch:
commit 54ac67d9db4673246fb666a0f8de25d495c046d6
Author: Robin Mills <robin at clanmills.com>
Date: Wed Oct 19 19:06:31 2016 +0000
#1080 Fix submitted.
---
src/tags.cpp | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/tags.cpp b/src/tags.cpp
index 076533b..11a53e5 100644
--- a/src/tags.cpp
+++ b/src/tags.cpp
@@ -2685,13 +2685,12 @@ namespace Exiv2 {
std::ostream& print0x9204(std::ostream& os, const Value& value, const ExifData*)
{
Rational bias = value.toRational();
- if (bias.second <= 0) {
- os << "(" << bias.first << "/" << bias.second << ")";
- }
- else if (bias.first == 0) {
+
+ if (bias.first == 0 || bias.first == 0x80000000 ) {
os << "0 EV";
- }
- else {
+ } else if (bias.second <= 0) {
+ os << "(" << bias.first << "/" << bias.second << ")";
+ } else {
int32_t d = gcd(bias.first, bias.second);
int32_t num = std::abs(bias.first) / d;
int32_t den = bias.second / d;
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list