aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactextwindow.cpp
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-07-29 21:13:09 +0300
committerAndrei Prykhodko2018-07-29 21:23:04 +0300
commit841e0c11d82fe784b9153d0cb6fff3063969ca41 (patch)
tree9d45cbdd164d1ea8633e4e939a8a59f1bbd294b0 /graphics/macgui/mactextwindow.cpp
parent8ce7175ab7fd71cfb8ddc634de225a6effdcdb13 (diff)
downloadscummvm-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/macgui/mactextwindow.cpp')
-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 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;