From 24fbb13a1673113cc7d2209dc7efda90ffa43aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Sun, 26 May 2013 14:54:51 +0200 Subject: [PATCH] Fixed building of -letter-categories. --- Vocaluxe/Base/CSongCategorizer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vocaluxe/Base/CSongCategorizer.cs b/Vocaluxe/Base/CSongCategorizer.cs index aba5bb88..70733d88 100644 --- a/Vocaluxe/Base/CSongCategorizer.cs +++ b/Vocaluxe/Base/CSongCategorizer.cs @@ -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);