[evince] libview: Use the right border when transforming doc rect ot view rect



commit d624741c9c165f1f3260198fb33880d2c41aee97
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Mar 2 13:13:06 2014 +0100

    libview: Use the right border when transforming doc rect ot view rect
    
    Use top instead of right border for the y coordinate.

 libview/ev-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index a4841cc..d8101c9 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -1411,7 +1411,7 @@ _ev_view_transform_doc_rect_to_view_rect (EvView       *view,
        ev_view_get_page_extents (view, page, &page_area, &border);
 
        view_rect->x = (gint)(x * view->scale + 0.5) + page_area.x + border.left;
-       view_rect->y = (gint)(y * view->scale+ 0.5) + page_area.y + border.right;
+       view_rect->y = (gint)(y * view->scale + 0.5) + page_area.y + border.top;
        view_rect->width = (gint)(w * view->scale + 0.5);
        view_rect->height = (gint)(h * view->scale + 0.5);
 }


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