X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-page-action.c;h=d122be45906a4482f2edd9c917a4d74d4568ebe3;hb=487a0e7c2852af9a8bf5ffe6c6d28ac36fe6fe39;hp=4b559c5d4bba96fa327437b6ce7bdbe8b629cd9f;hpb=324e007ce9e3dfd5e1c28fdc90483ca81236b180;p=evince.git diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index 4b559c5d..d122be45 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -100,7 +100,7 @@ page_changed_cb (EvPageCache *page_cache, { g_assert (proxy); - if (page_cache != NULL) { + if (page_cache != NULL && page >= 0) { gchar *page_label = ev_page_cache_get_page_label (page_cache, page); gtk_entry_set_text (GTK_ENTRY (proxy->entry), page_label); gtk_editable_set_position (GTK_EDITABLE (proxy->entry), -1);