]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Don't change current page when rotating documents with different page sizes
authorCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 24 Sep 2009 14:05:18 +0000 (16:05 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 24 Sep 2009 14:05:18 +0000 (16:05 +0200)
Fixes bgo#595704.

libview/ev-view.c

index 09bc4feb5e28aefbc3170e89e6b972c288cf4839..ee5d25824579b1d5b7e621a26a17fe89f566d7f8 100644 (file)
@@ -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));
        }