Issue #12216: fix crash on switch to MWM
Since commit 4e499810, GIMP could crash on switching to
multi-window mode on X11 Linux systems.
As suggested by Alx Sa it is enough to add a NULL check for
shell to avoid the crash.
This commit is contained in:
parent
2db868ab50
commit
8cf1aaf40f
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ gimp_displays_accept_focus_events (Gimp *gimp)
|
|||
{
|
||||
GimpDisplayShell *shell = gimp_image_window_get_active_shell (iter->data);
|
||||
|
||||
if (! gimp_display_shell_is_drawn (shell))
|
||||
if (shell && ! gimp_display_shell_is_drawn (shell))
|
||||
{
|
||||
accept = FALSE;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue