From 48527a4061c2b62d5d1232d6bbafe753a822e2ee Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sat, 9 Aug 2014 17:58:49 +0200 Subject: [PATCH] Fix missing songs in categories --- Vocaluxe/Base/CSongCategorizer.cs | 2 +- Vocaluxe/Base/CSongSorter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Vocaluxe/Base/CSongCategorizer.cs b/Vocaluxe/Base/CSongCategorizer.cs index 282e62a7..4c16bf3a 100644 --- a/Vocaluxe/Base/CSongCategorizer.cs +++ b/Vocaluxe/Base/CSongCategorizer.cs @@ -71,7 +71,7 @@ namespace Vocaluxe.Base { if (songPointer.SortString != "") { - if (lastCategory == null || songPointer.SortString != lastCategory.Name) + if (lastCategory == null || String.Compare(songPointer.SortString, lastCategory.Name, StringComparison.CurrentCultureIgnoreCase) != 0) { lastCategory = new CCategory(songPointer.SortString); _Categories.Add(lastCategory); diff --git a/Vocaluxe/Base/CSongSorter.cs b/Vocaluxe/Base/CSongSorter.cs index f1703224..f521118f 100644 --- a/Vocaluxe/Base/CSongSorter.cs +++ b/Vocaluxe/Base/CSongSorter.cs @@ -155,7 +155,7 @@ namespace Vocaluxe.Base list.Add(new CSongPointer(song.ID, value)); else { - if (list.Count == 0) + if (values.Count == 0) list.Add(new CSongPointer(song.ID, "")); else list.AddRange(values.Select(val => new CSongPointer(song.ID, val)));