Removed StringSplitOptions.RemoveEmptyEntries when counting wrapped text lines

This commit is contained in:
Carko
2013-01-03 10:41:44 +01:00
committed by Chris Forbes
parent ca1e0b4c48
commit 914afa2dee

View File

@@ -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)