diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-12-25 21:45:37 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-12-25 21:45:37 (GMT) |
commit | e0acc158e0e24d2f5d0d482ca7eaa20ad83e0f82 (patch) | |
tree | a5f2276450b31f4daf03f5328d46bae3fb927617 /shell/ev-view.c | |
parent | 147db949b1e422ce3e4fc2c948efbd74581bc311 (diff) |
Fix very small typo.
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r-- | shell/ev-view.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c index 9c7779b..d8eb8ac 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -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) { |