From bb6d4388dfc2b33b540006afd92b7b066bc8ac6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 13 Jun 2015 08:36:37 +0200 Subject: [PATCH] always return a default height based on font size --- OpenRA.Game/Graphics/SpriteFont.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Graphics/SpriteFont.cs b/OpenRA.Game/Graphics/SpriteFont.cs index 63eec66d05..6cf352dbf5 100644 --- a/OpenRA.Game/Graphics/SpriteFont.cs +++ b/OpenRA.Game/Graphics/SpriteFont.cs @@ -94,7 +94,7 @@ namespace OpenRA.Graphics public int2 Measure(string text) { if (string.IsNullOrEmpty(text)) - return int2.Zero; + return new int2(0, size); var lines = text.Split('\n'); return new int2((int)Math.Ceiling(lines.Max(lineWidth)), lines.Length * size);