[f-spot] Don't try to draw tags if there aren't any



commit 3d0a0d2e0a8239c345d832a0aeae49e9102d786f
Author: Paul Wellner Bou <paul purecodes org>
Date:   Mon Jul 5 21:50:40 2010 +0200

    Don't try to draw tags if there aren't any
    
    https://bugzilla.gnome.org/show_bug.cgi?id=623529

 src/Widgets/TagView.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Widgets/TagView.cs b/src/Widgets/TagView.cs
index 00ddda9..199b6d5 100644
--- a/src/Widgets/TagView.cs
+++ b/src/Widgets/TagView.cs
@@ -76,6 +76,9 @@ public class TagView : EventBox {
 	
 	public void DrawTags()
 	{
+		if (tags == null)
+			return;
+
 		SetSizeRequest ((thumbnail_size + TAG_ICON_VSPACING) * tags.Length,
 				thumbnail_size);
 



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