diff options
-rw-r--r-- | graphics/macgui/mactextwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index 4fa8103f24..36c2bd6321 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -152,6 +152,9 @@ bool MacTextWindow::draw(ManagedSurface *g, bool forceRedraw) { } void MacTextWindow::drawSelection() { + if (_selectedText.endY == -1) + return; + int start = MIN(_selectedText.startY, _selectedText.endY); start -= _scrollPos; start = MAX(0, start); |