diff --git a/src/MahApps.Metro/Controls/ColorPicker/BuildInColorPalettes.cs b/src/MahApps.Metro/Controls/ColorPicker/BuildInColorPalettes.cs index 9a81a3839e..83e4cedc8c 100644 --- a/src/MahApps.Metro/Controls/ColorPicker/BuildInColorPalettes.cs +++ b/src/MahApps.Metro/Controls/ColorPicker/BuildInColorPalettes.cs @@ -51,11 +51,11 @@ public static void AddColorToRecentColors(Color? color, IEnumerable recentColors if (recentColors is ObservableCollection collection) { var oldIndex = collection.IndexOf(color); - if (oldIndex > -1) + if (oldIndex > 0) { collection.Move(oldIndex, 0); } - else + else if (oldIndex < 0) { if (collection.Count >= maxCount) {