mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
app, libgimpcolor: refactor GimpColorManaged::get_color_profile()
to not return a reference that has to be dropped. Also allow NULL to be returned if the managed cannot have a profile. If it can have one, get_color_profile() still always returns a profile (either the assigned one, or a generated built-in one).
This commit is contained in:
parent
7c95676f88
commit
b45d31072b
19 changed files with 93 additions and 102 deletions
|
@ -153,8 +153,7 @@ gimp_color_managed_get_color_profile (GimpColorManaged *managed)
|
|||
if (iface->get_color_profile)
|
||||
return iface->get_color_profile (managed);
|
||||
|
||||
/* never return a NULL profile */
|
||||
return gimp_color_profile_new_srgb ();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue