X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libview%2Fev-pixbuf-cache.c;h=367f70d781fd52490186d3a09b354ee8a26e4c81;hb=e769474337c9a6ffdaed2327056e8de2f7ca9ee4;hp=4eb5c0e0e06b9dddc66a776136250e56389223fc;hpb=9c77b69d6ece7df775fd326f0afcc5a752b7a3bf;p=evince.git diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c index 4eb5c0e0..367f70d7 100644 --- a/libview/ev-pixbuf-cache.c +++ b/libview/ev-pixbuf-cache.c @@ -1,10 +1,6 @@ #include #include "ev-pixbuf-cache.h" #include "ev-job-scheduler.h" -#include "ev-mapping.h" -#include "ev-document-forms.h" -#include "ev-document-images.h" -#include "ev-document-annotations.h" #include "ev-view-private.h" typedef struct _CacheJobInfo @@ -781,11 +777,11 @@ ev_pixbuf_cache_set_inverted_colors (EvPixbufCache *pixbuf_cache, CacheJobInfo *job_info; job_info = pixbuf_cache->prev_job + i; - if (job_info->surface) + if (job_info && job_info->surface) ev_document_misc_invert_surface (job_info->surface); job_info = pixbuf_cache->next_job + i; - if (job_info->surface) + if (job_info && job_info->surface) ev_document_misc_invert_surface (job_info->surface); } @@ -793,7 +789,7 @@ ev_pixbuf_cache_set_inverted_colors (EvPixbufCache *pixbuf_cache, CacheJobInfo *job_info; job_info = pixbuf_cache->job_list + i; - if (job_info->surface) + if (job_info && job_info->surface) ev_document_misc_invert_surface (job_info->surface); } }