GRAPHICS: MACGUI: Correctly process empty inpt strings in MacTextWindow

This commit is contained in:
Eugene Sandulenko 2017-07-30 09:05:28 +02:00
parent dbc247cc3f
commit 73b6b12cbb

View File

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