aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/macgui/mactextwindow.cpp2
1 files changed, 1 insertions, 1 deletions
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);