[gtk+/gtk-3-2] printing: Fix a typo



commit a8e0895449cbddce0226abbc2ddeb7957b7efa26
Author: Marek Kasik <mkasik redhat com>
Date:   Thu Jan 26 10:54:22 2012 +0100

    printing: Fix a typo
    
    Fix a typo which crashes on my printer.

 modules/printbackends/cups/gtkprintercups.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/modules/printbackends/cups/gtkprintercups.c b/modules/printbackends/cups/gtkprintercups.c
index 09b5bfd..cc1c577 100644
--- a/modules/printbackends/cups/gtkprintercups.c
+++ b/modules/printbackends/cups/gtkprintercups.c
@@ -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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]