Merge pull request #493 from Vocaluxe/FixArgumentOutOfRangeException

Fix System.ArgumentOutOfRangeException
This commit is contained in:
daggeg authored and GitHub committed 2020-02-08 19:09:43 +01:00
commit 81a9fcf710
1 file changed
+6 -1
+6 -1
View File
@@ -224,7 +224,12 @@ namespace VocaluxeLib.Menu
_SongMode = _SelectSlides[_SelectSlideSongMode].Selection;
_Source = _SelectSlides[_SelectSlideSource].Selection;
NumMedleySongs = NumMinMedleySongs + _SelectSlides[_SelectSlideNumMedleySongs].Selection;
Playlist = _PlaylistIDs[_SelectSlides[_SelectSlidePlaylist].Selection];
int playlistSelection = _SelectSlides[_SelectSlidePlaylist].Selection;
if (playlistSelection >= 0 && playlistSelection < _PlaylistIDs.Count)
Playlist = _PlaylistIDs[playlistSelection];
else
Playlist = -1;
if (_SelectSlides[_SelectSlideSorting].Selection != _Sorting)
{