[banshee] [ThickClient] Fix album grid missing-artwork rendering
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [ThickClient] Fix album grid missing-artwork rendering
- Date: Sun, 7 Nov 2010 21:36:34 +0000 (UTC)
commit fe0bc0c435c3ce672a080959463b057429a5dba1
Author: Gabriel Burt <gabriel burt gmail com>
Date: Sun Nov 7 15:34:51 2010 -0600
[ThickClient] Fix album grid missing-artwork rendering
Bug was recently introduced with commit "[CoverArtSpec] Return null for
unknown artists".
.../Banshee.Collection.Gui/DataViewChildAlbum.cs | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
index b4e0f53..1cc5733 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
@@ -129,11 +129,7 @@ namespace Banshee.Collection.Gui
protected override void ClippedRender (CellContext context)
{
var artwork_id = BoundObject as string;
- if (artwork_id == null) {
- return;
- }
-
- var image_surface = artwork_manager != null
+ var image_surface = artwork_id != null && artwork_manager != null
? artwork_manager.LookupScaleSurface (artwork_id, (int)ImageSize, true)
: null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]