Check for a NULL current_panel before shelling out mouse actions to a panel
method.
This commit is contained in:
parent
d0126ec533
commit
6420088452
1 changed files with 3 additions and 1 deletions
|
@ -542,9 +542,11 @@ void guiMouseFunc(int button, int updown, int x, int y)
|
||||||
// know what's going on.
|
// know what's going on.
|
||||||
if (mouse_mode == MOUSE_POINTER) {
|
if (mouse_mode == MOUSE_POINTER) {
|
||||||
if (!puMouse (button, updown, x,y)) {
|
if (!puMouse (button, updown, x,y)) {
|
||||||
|
if ( current_panel != NULL ) {
|
||||||
current_panel->doMouseAction(button, updown, x, y);
|
current_panel->doMouseAction(button, updown, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Register the new position (if it
|
// Register the new position (if it
|
||||||
// hasn't been registered already).
|
// hasn't been registered already).
|
||||||
|
|
Loading…
Reference in a new issue