diff options
-rw-r--r-- | shell/ev-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index e11dcc8f..822cfd80 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1585,8 +1585,15 @@ ev_window_set_document (EvWindow *ev_window, EvDocument *document) } #endif if (EV_WINDOW_IS_PRESENTATION (ev_window) && document->iswebdocument == FALSE) { + gint current_page; + + current_page = ev_view_presentation_get_current_page ( + EV_VIEW_PRESENTATION (ev_window->priv->presentation_view)); gtk_widget_destroy (ev_window->priv->presentation_view); ev_window->priv->presentation_view = NULL; + + /* Update the model with the current presentation page */ + ev_document_model_set_page (ev_window->priv->model, current_page); ev_window_run_presentation (ev_window); } else if ( EV_WINDOW_IS_PRESENTATION (ev_window) && document->iswebdocument == TRUE ) { |