Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew S. Wilson <msw@rpath.com>2005-07-02 16:15:00 (GMT)
committer Matt Wilson <msw@src.gnome.org>2005-07-02 16:15:00 (GMT)
commitffa0624bf1b57634e5445c97e50a47134182e213 (patch)
treec7ee49f25a6ea8558d5f1039089211273f8fb9c1
parent30ab21a355281cee3960062ab616ab8b4fa795ca (diff)
return NULL if the document does not implement the selection interface.
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.
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-pixbuf-cache.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2da4d9a..6f53833 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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
reported height by using the resolution aspect ratio
(tiff_document_render_pixbuf): scale the pixbuf using the
diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c
index a6127c3..0d1507d 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;