From 67d846c7ea70bae109489d94fb984638b5c6ef2b Mon Sep 17 00:00:00 2001 From: Monsta Date: Fri, 10 Jul 2015 13:29:27 +0300 Subject: fix crash when pressing Esc fixes https://github.com/mate-desktop/atril/issues/136 --- shell/ev-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/ev-window.c b/shell/ev-window.c index bc8863a6..69c43a1e 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -4785,7 +4785,7 @@ ev_window_cmd_escape (GtkAction *action, EvWindow *window) { GtkWidget *widget; - if (!window->priv->document->iswebdocument && window->priv->view) + if (window->priv->document && !window->priv->document->iswebdocument && window->priv->view) ev_view_autoscroll_stop (EV_VIEW (window->priv->view)); widget = gtk_window_get_focus (GTK_WINDOW (window)); -- cgit v1.2.1