diff options
author | Eugene Sandulenko | 2017-07-30 09:05:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-01 10:42:21 +0200 |
commit | 73b6b12cbb926c2e21020afa4a984bbeaeac3db6 (patch) | |
tree | 63ae42d118ff79c8925fce4d2d409d74cb8cc161 | |
parent | dbc247cc3ff3862b28bb6a83bcced50e52e69b96 (diff) | |
download | scummvm-rg350-73b6b12cbb926c2e21020afa4a984bbeaeac3db6.tar.gz scummvm-rg350-73b6b12cbb926c2e21020afa4a984bbeaeac3db6.tar.bz2 scummvm-rg350-73b6b12cbb926c2e21020afa4a984bbeaeac3db6.zip |
GRAPHICS: MACGUI: Correctly process empty inpt strings in MacTextWindow
-rw-r--r-- | graphics/macgui/mactextwindow.cpp | 2 |
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); |