Skip to content

Commit 322b516

Browse files
[[ Bug 13539 ]] menuPick not triggered under certain conditions
1 parent 27aefb4 commit 322b516

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/notes/bugfix-13539.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# menuPick not triggered under certain conditions

engine/src/button.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,9 @@ Boolean MCButton::mup(uint2 which, bool p_release)
12901290
&& MCeventtime - clicktime < OPTION_TIME)
12911291
return True;
12921292
else
1293-
if (menumode == WM_PULLDOWN && MCU_point_in_rect(rect, mx, my))
1293+
// SN-2014-10-02: [[ Bug 13539 ]] Only consider the mouse location if we are
1294+
// sure that the coordinates are related to the stack, not the pulldown menu
1295+
if (menumode == WM_PULLDOWN && MCmousestackptr == getstack() && MCU_point_in_rect(rect, mx, my))
12941296
{
12951297
if (state & CS_MOUSE_UP_MENU)
12961298
{

0 commit comments

Comments
 (0)