banshee r3859 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Collection.Gui



Author: gburt
Date: Thu May  1 14:42:32 2008
New Revision: 3859
URL: http://svn.gnome.org/viewvc/banshee?rev=3859&view=rev

Log:
2008-05-01  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellDuration.cs:
	Fancy rounding commented out since it's not consistent with what is done
	in libbanshee.  Fixes BGO #520648.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellDuration.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellDuration.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellDuration.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellDuration.cs	Thu May  1 14:42:32 2008
@@ -44,7 +44,10 @@
                     return base.Text;
                 }
                 
-                int seconds = (int)Math.Round(((TimeSpan)BoundObject).TotalSeconds);
+                // Fancy rounding commented out since it's not consistent with what is
+                // done in libbanshee.  See http://bugzilla.gnome.org/show_bug.cgi?id=520648
+                //int seconds = (int)Math.Round(((TimeSpan)BoundObject).TotalSeconds);
+                int seconds = (int) ((TimeSpan)BoundObject).TotalSeconds;
                 
                 return seconds >= 3600 ? 
                     String.Format ("{0}:{1:00}:{2:00}", seconds / 3600, (seconds / 60) % 60, seconds % 60) :



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]