diff options
author | Andrei Prykhodko | 2018-07-29 21:13:09 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-07-29 21:23:04 +0300 |
commit | 841e0c11d82fe784b9153d0cb6fff3063969ca41 (patch) | |
tree | 9d45cbdd164d1ea8633e4e939a8a59f1bbd294b0 /graphics | |
parent | 8ce7175ab7fd71cfb8ddc634de225a6effdcdb13 (diff) | |
download | scummvm-rg350-841e0c11d82fe784b9153d0cb6fff3063969ca41.tar.gz scummvm-rg350-841e0c11d82fe784b9153d0cb6fff3063969ca41.tar.bz2 scummvm-rg350-841e0c11d82fe784b9153d0cb6fff3063969ca41.zip |
GRAPHICS: MACGUI: fixed SIGSEGV when ptr to menu in MacTextWindow is NULL
Diffstat (limited to 'graphics')
-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 b43948af3b..553592382d 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -356,7 +356,7 @@ bool MacTextWindow::processEvent(Common::Event &event) { startMarking(event.mouse.x, event.mouse.y); return true; - } else if (event.type == Common::EVENT_LBUTTONUP) { + } else if (event.type == Common::EVENT_LBUTTONUP && _menu) { if (_inTextSelection) { _inTextSelection = false; |