[evince] libview: Take page border into account when computing selections
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: Take page border into account when computing selections
- Date: Fri, 21 Jun 2013 13:12:55 +0000 (UTC)
commit b9c32bc1c1f5971c080bcc4753c6df90732f5a5e
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Fri Jun 21 15:02:59 2013 +0200
libview: Take page border into account when computing selections
libview/ev-view.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index d171794..ab29010 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7094,6 +7094,11 @@ compute_new_selection_text (EvView *view,
&selection->rect.x2,
&selection->rect.y2);
+ selection->rect.x1 -= border.left;
+ selection->rect.y1 -= border.top;
+ selection->rect.x2 -= border.right;
+ selection->rect.y2 -= border.bottom;
+
list = g_list_append (list, selection);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]