aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2017-07-30 09:05:28 +0200
committerEugene Sandulenko2017-08-01 10:42:21 +0200
commit73b6b12cbb926c2e21020afa4a984bbeaeac3db6 (patch)
tree63ae42d118ff79c8925fce4d2d409d74cb8cc161 /graphics
parentdbc247cc3ff3862b28bb6a83bcced50e52e69b96 (diff)
downloadscummvm-rg350-73b6b12cbb926c2e21020afa4a984bbeaeac3db6.tar.gz
scummvm-rg350-73b6b12cbb926c2e21020afa4a984bbeaeac3db6.tar.bz2
scummvm-rg350-73b6b12cbb926c2e21020afa4a984bbeaeac3db6.zip
GRAPHICS: MACGUI: Correctly process empty inpt strings in MacTextWindow
Diffstat (limited to 'graphics')
-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);