[evince] ev-pixbuf-cache: Clear the selection region also when clearing the job selection
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] ev-pixbuf-cache: Clear the selection region also when clearing the job selection
- Date: Fri, 12 Jul 2013 09:27:52 +0000 (UTC)
commit 1a9ba345813c3bb52d3b1f159a2eb3afcb3b12ee
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Fri Jul 12 11:16:01 2013 +0200
ev-pixbuf-cache: Clear the selection region also when clearing the job selection
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 562927d..897d3de 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -1138,6 +1138,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]