Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-09-24 14:05:18 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-09-24 14:05:18 (GMT)
commit9b3d280fb1c789e3f2dd7ba91bcefc98b4f3585c (patch)
tree54e8fc701fc42016462ace327628790f14cb7a95
parent8134adb7fa71603dbdeef8d7b062cae155e476d8 (diff)
[libview] Don't change current page when rotating documents with different page sizes
Fixes bgo#595704.
-rw-r--r--libview/ev-view.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 09bc4fe..ee5d258 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5093,6 +5093,8 @@ ev_view_rotation_changed_cb (EvDocumentModel *model,
if (view->pixbuf_cache) {
ev_pixbuf_cache_clear (view->pixbuf_cache);
+ if (!ev_document_is_page_size_uniform (view->document))
+ view->pending_scroll = SCROLL_TO_PAGE_POSITION;
gtk_widget_queue_resize (GTK_WIDGET (view));
}