mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
printing: Add "Custom." prefix only once to paper size
Check whether "Custom." prefix is already present in the name of selected paper size. (#679883)
This commit is contained in:
parent
2d3aee2132
commit
be7752183e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user