[evince] [libview] Don't change current page when rotating documents with different page sizes
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince] [libview] Don't change current page when rotating documents with different page sizes
- Date: Thu, 24 Sep 2009 14:09:02 +0000 (UTC)
commit 9b3d280fb1c789e3f2dd7ba91bcefc98b4f3585c
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Thu Sep 24 16:05:18 2009 +0200
[libview] Don't change current page when rotating documents with different page sizes
Fixes bgo#595704.
libview/ev-view.c | 2 ++
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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]