banshee r4565 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.Widgets
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4565 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.Widgets
- Date: Thu, 18 Sep 2008 19:11:36 +0000 (UTC)
Author: gburt
Date: Thu Sep 18 19:11:36 2008
New Revision: 4565
URL: http://svn.gnome.org/viewvc/banshee?rev=4565&view=rev
Log:
2008-09-18 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs:
Fix System.ArgumentOutOfRangeException (BGO #552820).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs (original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs Thu Sep 18 19:11:36 2008
@@ -170,7 +170,7 @@
string second_line = line, third_line = line;
int split_pos = line.LastIndexOf ("<span");
if (split_pos >= 0) {
- second_line = line.Substring (0, split_pos - 1) + "</span>";
+ second_line = line.Substring (0, Math.Max (0, split_pos - 1)) + "</span>";
third_line = String.Format ("<span color=\"{0}\">{1}",
CairoExtensions.ColorGetHex (TextColor, false),
line.Substring (split_pos, line.Length - split_pos));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]