[banshee] [InternetArchive] Fix casting exception (bgo#605911)



commit 7d45248c8f4560beea7b0edc8c46bf0004f90436
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Thu Jan 21 17:04:43 2010 -0800

    [InternetArchive] Fix casting exception (bgo#605911)
    
    ColumnCellTrackNumber only handles ints, not longs.

 .../Banshee.InternetArchive/DetailsView.cs         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
index b943576..719c445 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
@@ -451,7 +451,7 @@ namespace Banshee.InternetArchive
             if (tracks.Count > 0) {
                 // Mono in openSUSE 11.0 doesn't like this
                 //SetWidth (columns.TrackColumn,    all_tracks_have_num_in_title ? 0 : tracks.Max (f => f.TrackNumber), 0);
-                long max_track = 0;
+                int max_track = 0;
                 long max_size = 0;
                 foreach (var t in tracks) {
                     max_track = Math.Max (max_track, t.TrackNumber);



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