diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index c79fe9da21..3c28a849fd 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -562,8 +562,8 @@ add_cups_options (const gchar *key, } } - /* Add "Custom." prefix to custom values. */ - if (custom_value) + /* Add "Custom." prefix to custom values if not already added. */ + if (custom_value && !g_str_has_prefix (value, "Custom.")) { new_value = g_strdup_printf ("Custom.%s", value); gtk_cups_request_encode_option (request, key, new_value);