LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libexif-exposure-time-bz223752.diff of Package libexif (Project DISCONTINUED:openSUSE:10.3:Update)

--- libexif/exif-entry.c	2007-05-23 16:06:37.000000000 +0200
+++ libexif/exif-entry.c	2007-09-09 14:50:23.000000000 +0200
@@ -774,7 +774,7 @@
 		d = (double) v_rat.numerator / (double) v_rat.denominator;
 		if (d < 1)
 			snprintf (val, maxlen, _("1/%d"),
-				  (int) (1. / d));
+				  (int) (0.5 + 1. / d));
 		else
 			snprintf (val, maxlen, _("%d"), (int) d);
 		if (maxlen > strlen (val) + strlen (_(" sec.")))