mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
libgimpcolor: improve warning to help with debugging.
This commit is contained in:
parent
ce887767e7
commit
4d798ecfed
1 changed files with 5 additions and 1 deletions
|
@ -384,7 +384,11 @@ gimp_babl_format_get_with_alpha (const Babl *format)
|
||||||
else if (g_strcmp0 (model, "cairo-RGB24") == 0)
|
else if (g_strcmp0 (model, "cairo-RGB24") == 0)
|
||||||
new_model = "cairo-ARGB32";
|
new_model = "cairo-ARGB32";
|
||||||
|
|
||||||
g_return_val_if_fail (new_model != NULL, format);
|
if (new_model == NULL)
|
||||||
|
{
|
||||||
|
g_warning ("%s: unsupported format \"%s\".", G_STRFUNC, babl_get_name (format));
|
||||||
|
return format;
|
||||||
|
}
|
||||||
|
|
||||||
name = g_strdup_printf ("%s %s", new_model, type);
|
name = g_strdup_printf ("%s %s", new_model, type);
|
||||||
new_format = babl_format_with_space (name, format);
|
new_format = babl_format_with_space (name, format);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue