projects
/
platform
/
upstream
/
libexif.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
652da46
)
Fixed rounding of exposure time to match better.
author
Marcus Meissner
<marcus@jet.franken.de>
Wed, 9 Jan 2008 13:19:41 +0000
(14:19 +0100)
committer
Marcus Meissner
<marcus@jet.franken.de>
Wed, 9 Jan 2008 13:19:41 +0000
(14:19 +0100)
(Patch from Thorsten Kukuk, https://bugzilla.novell.com/show_bug.cgi?id=223752)
libexif/exif-entry.c
patch
|
blob
|
history
diff --git
a/libexif/exif-entry.c
b/libexif/exif-entry.c
index
3c6313a
..
9f3c40c
100644
(file)
--- a/
libexif/exif-entry.c
+++ b/
libexif/exif-entry.c
@@
-788,7
+788,7
@@
exif_entry_get_value (ExifEntry *e, char *val, unsigned int maxlen)
if (!v_rat.denominator) return val;
d = (double) v_rat.numerator / (double) v_rat.denominator;
if (d < 1)
- snprintf (val, maxlen, _("1/%d"), (int) (1. / d));
+ snprintf (val, maxlen, _("1/%d"), (int) (
0.5 +
1. / d));
else
snprintf (val, maxlen, _("%d"), (int) d);
if (maxlen > strlen (val) + strlen (_(" sec.")))