Skip to content
Permalink
Browse files

Use persistent page setup

  • Loading branch information...
vkareh committed Feb 20, 2019
1 parent 092efdb commit 9f631a77bbf627ac86cbff93b1ef4bffba76b62e
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/eom-window.c
@@ -2176,10 +2176,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,
@@ -2213,6 +2213,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)

0 comments on commit 9f631a7

Please sign in to comment.
You can’t perform that action at this time.