From e0acc158e0e24d2f5d0d482ca7eaa20ad83e0f82 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 25 Dec 2005 21:45:37 +0000 Subject: Fix very small typo. --- (limited to 'shell') 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) { -- cgit v0.9.1