summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-07-12 11:14:45 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commitac8e16cb49e2858e3918fb53551b8cfacc720685 (patch)
tree918955d44e476a5b5a89de6bac415ed8f5dbb0ed /libview
parent90c4cd3a61b6368a97adb47a538b3f3e9506bf84 (diff)
downloadatril-ac8e16cb49e2858e3918fb53551b8cfacc720685.tar.bz2
atril-ac8e16cb49e2858e3918fb53551b8cfacc720685.tar.xz
ev-pixbuf-cache: fix the condition for when a new selection is needed
If we don't have a selection surface/region and points has been set, we need a new selection surface/region even if the scale hasn't changed. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=ca60329
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-pixbuf-cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c
index 5706ab44..ca4ffacb 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -925,9 +925,9 @@ new_selection_surface_needed (EvPixbufCache *pixbuf_cache,
gint page,
gfloat scale)
{
- if (job_info->selection || job_info->points_set)
+ if (job_info->selection)
return job_info->selection_scale != scale;
- return FALSE;
+ return job_info->points_set;
}
static gboolean
@@ -936,9 +936,9 @@ new_selection_region_needed (EvPixbufCache *pixbuf_cache,
gint page,
gfloat scale)
{
- if (job_info->selection_region || job_info->points_set)
+ if (job_info->selection_region)
return job_info->selection_region_scale != scale;
- return FALSE;
+ return job_info->points_set;
}
static void