[f-spot] Show right format for exposure time in InfoBox
- From: Mike Gemünde <mgemuende src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Show right format for exposure time in InfoBox
- Date: Fri, 9 Jul 2010 07:49:20 +0000 (UTC)
commit 789d86bb33557509ff01a86f1602ef7d3493ef8a
Author: Mike Gemünde <mike gemuende de>
Date: Fri Jul 9 09:44:15 2010 +0200
Show right format for exposure time in InfoBox
https://bugzilla.gnome.org/show_bug.cgi?id=623913
src/Widgets/InfoBox.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Widgets/InfoBox.cs b/src/Widgets/InfoBox.cs
index 2553c35..b8bdd2c 100644
--- a/src/Widgets/InfoBox.cs
+++ b/src/Widgets/InfoBox.cs
@@ -329,7 +329,11 @@ namespace FSpot.Widgets
}
if (exposure_time.HasValue) {
- info += String.Format ("{0} sec ", exposure_time.Value);
+ if (Math.Abs (exposure_time.Value) >= 1.0) {
+ info += String.Format ("{0} sec ", exposure_time.Value);
+ } else {
+ info += String.Format ("1/{0} sec ", (int) (1 / exposure_time.Value));
+ }
}
if (iso_speed.HasValue) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]