diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c index 4ac60de879..f12ab01b37 100644 --- a/gtk/gtkprintoperation-unix.c +++ b/gtk/gtkprintoperation-unix.c @@ -547,7 +547,7 @@ finish_print (PrintResponseData *rdata, if (gtk_print_settings_get_number_up (settings) < 2) { - if (gtk_printer_get_hard_margins (printer, &top, &bottom, &left, &right)) + if (printer && gtk_printer_get_hard_margins (printer, &top, &bottom, &left, &right)) _gtk_print_context_set_hard_margins (priv->print_context, top, bottom, left, right); } else