Adding a textblock with whitespace as the text doesn't blow up GUIListBoxes anymore, missing key bindings don't crash the game
This commit is contained in:
@@ -157,7 +157,7 @@ namespace Barotrauma
|
||||
|
||||
SetTextPos();
|
||||
|
||||
if (rect.Height == 0 && !string.IsNullOrWhiteSpace(Text))
|
||||
if (rect.Height == 0 && !string.IsNullOrEmpty(Text))
|
||||
{
|
||||
this.rect.Height = (int)Font.MeasureString(wrappedText).Y;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user