[longomatch] Fix traceback when the count of tags is 0



commit 6ff41fcf89d6a338df5fcae93c1ddb093bed7a29
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Mar 14 23:48:34 2012 +0100

    Fix traceback when the count of tags is 0

 LongoMatch.GUI/Gui/Component/TaggerWidget.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/TaggerWidget.cs b/LongoMatch.GUI/Gui/Component/TaggerWidget.cs
index 6a78110..80cfa22 100644
--- a/LongoMatch.GUI/Gui/Component/TaggerWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/TaggerWidget.cs
@@ -51,6 +51,8 @@ namespace LongoMatch.Gui.Component
 		}
 		
 		public void AddSubCategory(TagSubCategory subcat, StringTagStore tags){
+			if (tags.Tags.Count == 0)
+				return;
 			StringTaggerWidget tagger = new StringTaggerWidget(subcat, tags);
 			table1.Attach(tagger,0, 1, table1.NRows-1, table1.NRows);
 			table1.NRows ++;



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