Fixed building of -letter-categories.

This commit is contained in:
Florian Küpper committed 2013-05-26 14:54:51 +02:00
1 parent 6bdfb49cbb
commit 24fbb13a16
1 file changed
+2 -2
+2 -2
View File
@@ -72,9 +72,9 @@ namespace Vocaluxe.Base
Char firstLetter = Char.ToUpper(songPointer.SortString.Normalize(NormalizationForm.FormD)[0]);
if (Char.IsLetter(firstLetter))
{
if (lastCategory == null || songPointer.SortString != lastCategory.Name)
if (lastCategory == null || firstLetter.ToString() != lastCategory.Name)
{
lastCategory = new CCategory(songPointer.SortString);
lastCategory = new CCategory(firstLetter.ToString());
_Categories.Add(lastCategory);
}
lastCategory.Songs.Add(songPointer);