[Mediaportal-svn] SF.net SVN: mediaportal: [16072] trunk/mediaportal/WindowPlugins/GUITV/ GUIFullSc
Turn your PC into a very advanced MediaCenter/HTPC
Brought to you by:
gereonheitmann,
morpheus_xx
From: <mr...@us...> - 2007-09-29 19:42:13
|
Revision: 16072 http://mediaportal.svn.sourceforge.net/mediaportal/?rev=16072&view=rev Author: mr_hipp Date: 2007-09-29 12:41:21 -0700 (Sat, 29 Sep 2007) Log Message: ----------- Fixed exception Modified Paths: -------------- trunk/mediaportal/WindowPlugins/GUITV/GUIFullScreenTV.cs Modified: trunk/mediaportal/WindowPlugins/GUITV/GUIFullScreenTV.cs =================================================================== --- trunk/mediaportal/WindowPlugins/GUITV/GUIFullScreenTV.cs 2007-09-29 17:27:57 UTC (rev 16071) +++ trunk/mediaportal/WindowPlugins/GUITV/GUIFullScreenTV.cs 2007-09-29 19:41:21 UTC (rev 16072) @@ -2288,7 +2288,11 @@ string displayedChannelName = string.Empty; if (_byIndex) - displayedChannelName = GUITVHome.Navigator.CurrentGroup.TvChannels[Int32.Parse(_channelName) - 1].Name; + { + int index = Int32.Parse(_channelName) - 1; + if(index < GUITVHome.Navigator.CurrentGroup.TvChannels.Count) + displayedChannelName = GUITVHome.Navigator.CurrentGroup.TvChannels[index].Name; + } else for (int ChannelCnt = 0; ChannelCnt < GUITVHome.Navigator.CurrentGroup.TvChannels.Count; ChannelCnt++) if (GUITVHome.Navigator.CurrentGroup.TvChannels[ChannelCnt].Number == Int32.Parse(_channelName)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |