mirror of https://github.com/GNOME/gimp.git
app: fix uninitialized variables.
This commit is contained in:
parent
05a4437d9a
commit
255f2e1cdf
|
@ -240,12 +240,22 @@ gimp_pickable_contiguous_region_by_seed (GimpPickable *pickable,
|
|||
select_transparent = FALSE;
|
||||
select_criterion = GIMP_SELECT_CRITERION_COMPOSITE;
|
||||
diagonal_neighbors = FALSE;
|
||||
|
||||
format = choose_format (src_buffer, select_criterion,
|
||||
&n_components, &has_alpha);
|
||||
gegl_buffer_sample (src_buffer, x, y, NULL, start_col, format,
|
||||
GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE);
|
||||
}
|
||||
else
|
||||
{
|
||||
gimp_pickable_flush (pickable);
|
||||
src_buffer = gimp_pickable_get_buffer (pickable);
|
||||
|
||||
format = choose_format (src_buffer, select_criterion,
|
||||
&n_components, &has_alpha);
|
||||
gegl_buffer_sample (src_buffer, x, y, NULL, start_col, format,
|
||||
GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE);
|
||||
|
||||
if (has_alpha)
|
||||
{
|
||||
if (select_transparent)
|
||||
|
@ -263,12 +273,6 @@ gimp_pickable_contiguous_region_by_seed (GimpPickable *pickable,
|
|||
}
|
||||
}
|
||||
|
||||
format = choose_format (src_buffer, select_criterion,
|
||||
&n_components, &has_alpha);
|
||||
|
||||
gegl_buffer_sample (src_buffer, x, y, NULL, start_col, format,
|
||||
GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE);
|
||||
|
||||
extent = *gegl_buffer_get_extent (src_buffer);
|
||||
|
||||
mask_buffer = gegl_buffer_new (&extent, babl_format ("Y float"));
|
||||
|
|
Loading…
Reference in New Issue