]> www.fi.muni.cz Git - evince.git/commitdiff
return NULL if the document does not implement the selection interface.
authorMatthew S. Wilson <msw@rpath.com>
Sat, 2 Jul 2005 16:15:00 +0000 (16:15 +0000)
committerMatt Wilson <msw@src.gnome.org>
Sat, 2 Jul 2005 16:15:00 +0000 (16:15 +0000)
2005-07-02  Matthew S. Wilson  <msw@rpath.com>

* shell/ev-pixbuf-cache.c (ev_pixbuf_cache_get_selection_pixbuf):
return NULL if the document does not implement the selection
interface.

ChangeLog
shell/ev-pixbuf-cache.c

index 2da4d9a1f54e97ee898ab8e1c19f852b885b9ce8..6f5383319624aa92434522062bca482b6f957603 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-02  Matthew S. Wilson  <msw@rpath.com>
+
+       * 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  <msw@rpath.com>
 
        * tiff/tiff-document.c (tiff_document_get_page_size): scale the
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;