]> Pileus Git - ~andy/gtk/commitdiff
printing: Fix a typo
authorMarek Kasik <mkasik@redhat.com>
Thu, 26 Jan 2012 09:52:47 +0000 (10:52 +0100)
committerMarek Kasik <mkasik@redhat.com>
Thu, 26 Jan 2012 09:52:47 +0000 (10:52 +0100)
Fix a typo which crashes on my printer.

modules/printbackends/cups/gtkprintercups.c

index 09b5bfd916ac167798b5cb2afb7c91dc3a04a0c5..cc1c5774ba2e971d10c8f3d3b82c9d67facf495d 100644 (file)
@@ -346,6 +346,8 @@ gtk_printer_cups_update_settings (GtkPrinterCups *printer,
   /* cupsICCQualifier3 */
   option = gtk_printer_option_set_lookup (set, "cups-Resolution");
   if (option != NULL)
+    format[2] = option->value;
+  else
     format[2] = "*";
 
   /* get profile for the device given the qualifier */