[f-spot] Don't try to draw tags if there aren't any
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Don't try to draw tags if there aren't any
- Date: Mon, 5 Jul 2010 21:40:12 +0000 (UTC)
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]