[evince] libview: Fix the calculation of the page area in non continuous mode



commit 1fae4cd411fe209d4cac7c0b56c4d7a665664580
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Mar 2 13:11:36 2014 +0100

    libview: Fix the calculation of the page area in non continuous mode
    
    Take borders into account when calculating the x coordinate of the page
    area.

 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 bb9fdd4..a4841cc 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -1199,7 +1199,7 @@ ev_view_get_page_extents (EvView       *view,
                                x = x + (max_width - width - border->left - border->right);
                } else {
                        x = view->spacing;
-                       x = x + MAX (0, allocation.width - (width + view->spacing * 2)) / 2;
+                       x = x + MAX (0, allocation.width - (width + border->left + border->right + 
view->spacing * 2)) / 2;
                }
 
                get_page_y_offset (view, page, &y);


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