[banshee] [ArtworkManager] Check pixbuf.Handle before using the Pixbuf



commit 4dfd38cb169b2813b4eab66f5ac7ff088c125d20
Author: Aaron Bockover <abockover novell com>
Date:   Fri May 29 23:28:10 2009 -0400

    [ArtworkManager] Check pixbuf.Handle before using the Pixbuf
    
    This commit solves the same problem as the commit that broke
    existing API and introduced awkward API that provided a false
    sense of security: 07edaeff263b2c74d38758d48ac0102e987c1f1b
---
 .../Banshee.Collection.Gui/ArtworkManager.cs       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
index 0c2941a..86fef23 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
@@ -120,7 +120,7 @@ namespace Banshee.Collection.Gui
             }
         
             Pixbuf pixbuf = LookupScalePixbuf (id, size);
-            if (pixbuf == null) {
+            if (pixbuf == null || pixbuf.Handle == IntPtr.Zero) {
                 return null;
             }
             



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