Skip to content

Commit

Permalink
Use persistent page setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vkareh committed Mar 8, 2019
1 parent db25ddd commit 96b1b4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/eom-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -2146,10 +2146,10 @@ eom_window_print (EomWindow *window)
/* Make sure the window stays valid while printing */
g_object_ref (window);

if (window->priv->page_setup !=NULL)
if (window->priv->page_setup != NULL)
page_setup = g_object_ref (window->priv->page_setup);
else
page_setup = NULL;
page_setup = eom_print_get_page_setup ();

print = eom_print_operation_new (window->priv->image,
print_settings,
Expand Down Expand Up @@ -2183,6 +2183,7 @@ eom_window_print (EomWindow *window)
if (window->priv->page_setup != NULL)
g_object_unref (window->priv->page_setup);
window->priv->page_setup = g_object_ref (new_page_setup);
eom_print_set_page_setup (window->priv->page_setup);
}

if (page_setup != NULL)
Expand Down

0 comments on commit 96b1b4d

Please sign in to comment.