diff options
author | loongson <[email protected]> | 2017-03-04 12:56:05 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-03-05 20:19:58 +0100 |
commit | b2b6dc9afb1c5057415e8eb08a230d18ee955e99 (patch) | |
tree | 9e07ae0c3ac436cbef01d3d979801d64ba712717 | |
parent | f56979b9fe55ea7e26ef5de0ebdf9f00d0c585d9 (diff) | |
download | atril-b2b6dc9afb1c5057415e8eb08a230d18ee955e99.tar.bz2 atril-b2b6dc9afb1c5057415e8eb08a230d18ee955e99.tar.xz |
Previously opened page incorrectly restored if it was the last one
If you stay on the last page when you close it, reopen it will
not be positioned until you visited it (reset to the first).
In the changed code:
Judgment only works on the last page.
This function explicitly introduces this problem, so it can be
removed directly.
I have been tested successfully.
-rw-r--r-- | shell/ev-window.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index f2e07e5d..74c70347 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1280,8 +1280,6 @@ setup_document_from_metadata (EvWindow *window) * show the first page. */ page = ev_document_model_get_page (window->priv->model); n_pages = ev_document_get_n_pages (window->priv->document); - if (page == n_pages - 1) - ev_document_model_set_page (window->priv->model, 0); if (ev_metadata_get_int (window->priv->metadata, "window_width", &width) && ev_metadata_get_int (window->priv->metadata, "window_height", &height)) |