summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 36286614..ea101dce 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7580,6 +7580,10 @@ get_selection_page_range (EvView *view,
GtkBorder border;
ev_view_get_page_extents (view, i, &page_area, &border);
+ page_area.x -= border.left;
+ page_area.y -= border.top;
+ page_area.width += border.left + border.right;
+ page_area.height += border.top + border.bottom;
if (gdk_rectangle_point_in (&page_area, start) ||
gdk_rectangle_point_in (&page_area, stop)) {
if (first == -1)
@@ -7631,6 +7635,10 @@ compute_new_selection (EvView *view,
selection->rect.y2 = height;
ev_view_get_page_extents (view, i, &page_area, &border);
+ page_area.x -= border.left;
+ page_area.y -= border.top;
+ page_area.width += border.left + border.right;
+ page_area.height += border.top + border.bottom;
if (gdk_rectangle_point_in (&page_area, start))
point = start;