Permalink
Browse files

minor fix

  • Loading branch information...
pchilds committed Nov 8, 2012
1 parent 5d5e7e4 commit f354fab4dbf0d82dec5b646232982fa1026908ba
Showing with 4 additions and 0 deletions.
  1. +1 −0 gtk2plot/testplotlinear.c
  2. +1 −0 gtk2plot/testplotpolar.c
  3. +1 −0 gtk3plot/testplotlinear.c
  4. +1 −0 gtk3plot/testplotpolar.c
@@ -259,6 +259,7 @@ void prt(GtkWidget *widget, gpointer data)
prto=gtk_print_operation_new();
if (prst!=NULL) gtk_print_operation_set_print_settings(prto, prst);
prps=gtk_print_operation_get_default_page_setup(prto);
+ if (prps==NULL) prps=gtk_page_setup_new();
gtk_page_setup_set_orientation(prps, GTK_PAGE_ORIENTATION_LANDSCAPE);
gtk_print_operation_set_default_page_setup(prto, prps);
g_signal_connect(prto, "begin_print", G_CALLBACK(prb), NULL);
View
@@ -257,6 +257,7 @@ void prt(GtkWidget *widget, gpointer data)
prto=gtk_print_operation_new();
if (prst!=NULL) gtk_print_operation_set_print_settings(prto, prst);
prps=gtk_print_operation_get_default_page_setup(prto);
+ if (prps==NULL) prps=gtk_page_setup_new();
gtk_page_setup_set_orientation(prps, GTK_PAGE_ORIENTATION_LANDSCAPE);
gtk_print_operation_set_default_page_setup(prto, prps);
g_signal_connect(prto, "begin_print", G_CALLBACK(prb), NULL);
@@ -207,6 +207,7 @@ void prt(GtkWidget *widget, gpointer data)
prto=gtk_print_operation_new();
if (prst!=NULL) gtk_print_operation_set_print_settings(prto, prst);
prps=gtk_print_operation_get_default_page_setup(prto);
+ if (prps==NULL) prps=gtk_page_setup_new();
gtk_page_setup_set_orientation(prps, GTK_PAGE_ORIENTATION_LANDSCAPE);
gtk_print_operation_set_default_page_setup(prto, prps);
g_signal_connect(prto, "begin_print", G_CALLBACK(prb), NULL);
View
@@ -206,6 +206,7 @@ void prt(GtkWidget *widget, gpointer data)
prto=gtk_print_operation_new();
if (prst!=NULL) gtk_print_operation_set_print_settings(prto, prst);
prps=gtk_print_operation_get_default_page_setup(prto);
+ if (prps==NULL) prps=gtk_page_setup_new();
gtk_page_setup_set_orientation(prps, GTK_PAGE_ORIENTATION_LANDSCAPE);
gtk_print_operation_set_default_page_setup(prto, prps);
g_signal_connect(prto, "begin_print", G_CALLBACK(prb), NULL);

0 comments on commit f354fab

Please sign in to comment.