projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
581efea
)
Fix segfault when dragging mouse out of mainmenu window (#1910)
author
Kahrl
<kahrl@gmx.net>
Fri, 12 Dec 2014 23:39:07 +0000
(
00:39
+0100)
committer
Kahrl
<kahrl@gmx.net>
Fri, 12 Dec 2014 23:39:07 +0000
(
00:39
+0100)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index bd4a7c0d5b7935232caecce14c4e3a78312c4838..6ef20ceade5cd634b595c5dad525cba63a3bc09a 100644
(file)
--- a/
src/guiFormSpecMenu.cpp
+++ b/
src/guiFormSpecMenu.cpp
@@
-2772,7
+2772,8
@@
bool GUIFormSpecMenu::preprocessEvent(const SEvent& event)
gui::IGUIElement *hovered =
Environment->getRootGUIElement()->getElementFromPoint(
core::position2d<s32>(x, y));
- if (hovered->getType() == gui::EGUIET_TAB_CONTROL) {
+ if (hovered && isMyChild(hovered) &&
+ hovered->getType() == gui::EGUIET_TAB_CONTROL) {
gui::IGUISkin* skin = Environment->getSkin();
assert(skin != NULL);
gui::IGUIFont *old_font = skin->getFont();