From 914afa2dee8cd7c2ebe2c59c7d3127d12c6dfd9b Mon Sep 17 00:00:00 2001 From: Carko Date: Thu, 3 Jan 2013 10:41:44 +0100 Subject: [PATCH] Removed StringSplitOptions.RemoveEmptyEntries when counting wrapped text lines --- OpenRA.Game/Widgets/ChatDisplayWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Widgets/ChatDisplayWidget.cs b/OpenRA.Game/Widgets/ChatDisplayWidget.cs index 9a132b8339..9daf5e2139 100644 --- a/OpenRA.Game/Widgets/ChatDisplayWidget.cs +++ b/OpenRA.Game/Widgets/ChatDisplayWidget.cs @@ -56,7 +56,7 @@ namespace OpenRA.Widgets } var text = WidgetUtils.WrapText(line.Text, chatLogArea.Width - inset, font); - var textLines = text.Split(new[] { '\n' }, System.StringSplitOptions.RemoveEmptyEntries).Count(); + var textLines = text.Split(new[] { '\n' }).Count(); chatpos.Y -= 20 * textLines; if (owner != null)