diff options
author | Carlos Garcia Campos <[email protected]> | 2013-07-12 11:16:01 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-09-06 18:25:34 +0200 |
commit | 6fb70d30efe8d93c3473b235c3ae7d7e433caaf3 (patch) | |
tree | 49db4548f8f5899c3dd7872c602afb112ca9a5a5 | |
parent | ac8e16cb49e2858e3918fb53551b8cfacc720685 (diff) | |
download | atril-6fb70d30efe8d93c3473b235c3ae7d7e433caaf3.tar.bz2 atril-6fb70d30efe8d93c3473b235c3ae7d7e433caaf3.tar.xz |
ev-pixbuf-cache: Clear the selection region also when clearing the job selection
orign commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1a9ba34
-rw-r--r-- | libview/ev-pixbuf-cache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c index ca4ffacb..1e5402e4 100644 --- a/libview/ev-pixbuf-cache.c +++ b/libview/ev-pixbuf-cache.c @@ -1174,6 +1174,11 @@ clear_job_selection (CacheJobInfo *job_info) cairo_surface_destroy (job_info->selection); job_info->selection = NULL; } + + if (job_info->selection_region) { + cairo_region_destroy (job_info->selection_region); + job_info->selection_region = NULL; + } } /* This function will reset the selection on pages that no longer have them, and |