[evince] libview: Fix of the previous commit



commit 45f527e9b4789ceffa92f921ddff6804d0ee8974
Author: Marek Kasik <mkasik redhat com>
Date:   Tue May 10 13:26:16 2016 +0200

    libview: Fix of the previous commit
    
    Test corresponding axes (kind of typo).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=562257

 libview/ev-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index f96ad4b..04e4357 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -998,8 +998,8 @@ ev_view_scroll (EvView        *view,
 
        view->jump_to_find_result = FALSE;
 
-       if ((!horizontal && ev_view_page_fits (view, GTK_ORIENTATION_HORIZONTAL)) ||
-           (horizontal && ev_view_page_fits (view, GTK_ORIENTATION_VERTICAL))) {
+       if ((!horizontal && ev_view_page_fits (view, GTK_ORIENTATION_VERTICAL)) ||
+           (horizontal && ev_view_page_fits (view, GTK_ORIENTATION_HORIZONTAL))) {
                switch (scroll) {
                        case GTK_SCROLL_PAGE_BACKWARD:
                        case GTK_SCROLL_STEP_BACKWARD:


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