From f8f4dfbff458e11a8264ae2702210e5ccb24f2e2 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 8 Feb 2020 18:25:49 +0100 Subject: [PATCH] use toString shorthand --- MLEM/Extensions/SpriteFontExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM/Extensions/SpriteFontExtensions.cs b/MLEM/Extensions/SpriteFontExtensions.cs index e346f47..e3453f3 100644 --- a/MLEM/Extensions/SpriteFontExtensions.cs +++ b/MLEM/Extensions/SpriteFontExtensions.cs @@ -36,7 +36,7 @@ namespace MLEM.Extensions { foreach (var word in line.Split(' ')) { if (widthFunc(word) * scale >= width) { if (curr.Length > 0) { - total.Append(curr.ToString(0, curr.Length)).Append('\n'); + total.Append(curr).Append('\n'); curr.Clear(); } var wordBuilder = new StringBuilder();