Fixed building of -letter-categories.
This commit is contained in:
1 parent
6bdfb49cbb
commit
24fbb13a16
1 file changed
+2
-2
@@ -72,9 +72,9 @@ namespace Vocaluxe.Base
|
|||||||
Char firstLetter = Char.ToUpper(songPointer.SortString.Normalize(NormalizationForm.FormD)[0]);
|
Char firstLetter = Char.ToUpper(songPointer.SortString.Normalize(NormalizationForm.FormD)[0]);
|
||||||
if (Char.IsLetter(firstLetter))
|
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);
|
_Categories.Add(lastCategory);
|
||||||
}
|
}
|
||||||
lastCategory.Songs.Add(songPointer);
|
lastCategory.Songs.Add(songPointer);
|
||||||
|
|||||||
Reference in new issue
Block a user