From: Matthew S. Wilson Date: Sat, 2 Jul 2005 16:15:00 +0000 (+0000) Subject: return NULL if the document does not implement the selection interface. X-Git-Tag: EVINCE_0_3_3~185 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ffa0624bf1b57634e5445c97e50a47134182e213;p=evince.git return NULL if the document does not implement the selection interface. 2005-07-02 Matthew S. Wilson * shell/ev-pixbuf-cache.c (ev_pixbuf_cache_get_selection_pixbuf): return NULL if the document does not implement the selection interface. --- diff --git a/ChangeLog b/ChangeLog index 2da4d9a1..6f538331 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-02 Matthew S. Wilson + + * shell/ev-pixbuf-cache.c (ev_pixbuf_cache_get_selection_pixbuf): + return NULL if the document does not implement the selection + interface. + 2005-07-02 Matthew S. Wilson * tiff/tiff-document.c (tiff_document_get_page_size): scale the 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;