[longomatch] Update count from the category and not the global one



commit a66800dd8263738a5026b7c529031a49f24d5cc9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Jan 18 21:21:18 2013 +0100

    Update count from the category and not the global one

 LongoMatch.Core/Store/Project.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Project.cs b/LongoMatch.Core/Store/Project.cs
index c970811..e63c6ea 100644
--- a/LongoMatch.Core/Store/Project.cs
+++ b/LongoMatch.Core/Store/Project.cs
@@ -153,7 +153,7 @@ namespace LongoMatch.Store
 		/// A <see cref="MediaTimeNode"/>: created play
 		/// </returns>
 		public Play AddPlay(Category category, Time start, Time stop, Image miniature) {
-			string count= String.Format("{0:000}",timeline.Count+1);
+			string count= String.Format("{0:000}", PlaysInCategory (category).Count + 1);
 			string name = String.Format("{0} {1}",category.Name, count);
 
 			var play = new Play {



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