Commit f30aed7d authored by Marek Kašík's avatar Marek Kašík Committed by Carlos Garcia Campos
Browse files

libview: Check number of pages when processing button events

Check whether there are some pages in the opened document
when processing button events to avoid crash.

https://bugzilla.gnome.org/show_bug.cgi?id=769700
parent 68b2f98c
......@@ -4993,7 +4993,7 @@ ev_view_button_press_event (GtkWidget *widget,
{
EvView *view = EV_VIEW (widget);
if (!view->document)
if (!view->document || ev_document_get_n_pages (view->document) <= 0)
return FALSE;
if (gtk_gesture_is_recognized (view->zoom_gesture))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment