]> www.fi.muni.cz Git - evince.git/commitdiff
Fix very small typo.
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 25 Dec 2005 21:45:37 +0000 (21:45 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 25 Dec 2005 21:45:37 +0000 (21:45 +0000)
shell/ev-view.c

index 9c7779b2f5fb552289d33dfd243f1664a16d50bf..d8eb8ac2b2d1aad5d98c7423db4eae11f243b5f0 100644 (file)
@@ -319,8 +319,11 @@ scroll_to_current_page (EvView *view, GtkOrientation orientation)
 
         doc_point_to_view_point (view, view->current_page, &view->pending_point, &view_point);
 
-       view->pending_point.x = 0;
-       view->pending_point.y = 0;
+       if (orientation == GTK_ORIENTATION_VERTICAL) {
+               view->pending_point.y = 0;
+       } else {
+               view->pending_point.x = 0;
+       }
 
        if (orientation == GTK_ORIENTATION_VERTICAL) {
                if (view->continuous) {