mirror of https://github.com/GNOME/gimp.git
Issue #10814: [Color Space Invasion] crash in channel_get_color_invoker.
This commit is contained in:
parent
aaa75e3674
commit
d945e12ccc
|
@ -328,7 +328,7 @@ channel_get_color_invoker (GimpProcedure *procedure,
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
color = gimp_channel_get_color (channel);
|
color = gegl_color_duplicate (gimp_channel_get_color (channel));
|
||||||
gimp_color_set_alpha (color, 1.0);
|
gimp_color_set_alpha (color, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -328,7 +328,7 @@ HELP
|
||||||
%invoke = (
|
%invoke = (
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
{
|
{
|
||||||
color = gimp_channel_get_color (channel);
|
color = gegl_color_duplicate (gimp_channel_get_color (channel));
|
||||||
gimp_color_set_alpha (color, 1.0);
|
gimp_color_set_alpha (color, 1.0);
|
||||||
}
|
}
|
||||||
CODE
|
CODE
|
||||||
|
|
Loading…
Reference in New Issue