X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-pixbuf-cache.c;h=0d1507d8663d3d60711b48ec605f72dd012730fb;hb=848665b157185945d190a7a746d054d7f5d5e6e0;hp=a6127c3b6531e89af1f703026dd88a2f21718147;hpb=83dc7cff581241907168d6f61ce25f798b8c442f;p=evince.git diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c index a6127c3b..0d1507d8 100644 --- a/shell/ev-pixbuf-cache.c +++ b/shell/ev-pixbuf-cache.c @@ -704,6 +704,10 @@ ev_pixbuf_cache_get_selection_pixbuf (EvPixbufCache *pixbuf_cache, { CacheJobInfo *job_info; + /* the document does not implement the selection interface */ + if (!EV_IS_SELECTION (pixbuf_cache->document)) + return NULL; + job_info = find_job_cache (pixbuf_cache, page); if (job_info == NULL) return NULL;