]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-pixbuf-cache.c
Make frontends depend on just libev. Rework and group CFLAGS/LIBS
[evince.git] / shell / ev-pixbuf-cache.c
index a6127c3b6531e89af1f703026dd88a2f21718147..0d1507d8663d3d60711b48ec605f72dd012730fb 100644 (file)
@@ -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;