From 73b6b12cbb926c2e21020afa4a984bbeaeac3db6 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 30 Jul 2017 09:05:28 +0200 Subject: GRAPHICS: MACGUI: Correctly process empty inpt strings in MacTextWindow --- graphics/macgui/mactextwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index c34f428611..333bdcd3d2 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -111,7 +111,7 @@ void MacTextWindow::drawInput() { // Now recalc new text height _fontRef->wordWrapText(_inputText, _maxWidth, text); - _inputTextHeight = text.size(); + _inputTextHeight = MAX(1u, text.size()); // We always have line to clean // And add new input line to the text appendText(_inputText, _font); -- cgit v1.2.3