[evince] ev-pixbuf-cache: fix the condition for when a new selection is needed



commit ca603297cb00fd097c964e4090be560980b78532
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Fri Jul 12 11:14:45 2013 +0200

    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.

 libview/ev-pixbuf-cache.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c
index 8127440..562927d 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -890,9 +890,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
@@ -901,9 +901,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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]