[gimp/gimp-2-10] app: fix uninitialized variables.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: fix uninitialized variables.
- Date: Wed, 19 Dec 2018 15:43:34 +0000 (UTC)
commit 8fb83d77512d822f711792a4d8aa1b345363aaa5
Author: Jehan <jehan girinstud io>
Date: Thu Nov 15 13:56:54 2018 +0100
app: fix uninitialized variables.
(cherry picked from commit 255f2e1cdf973825c330e7df13a5ee716541ee7b)
app/core/gimppickable-contiguous-region.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/app/core/gimppickable-contiguous-region.c b/app/core/gimppickable-contiguous-region.c
index 6976556aa8..ab01af5979 100644
--- a/app/core/gimppickable-contiguous-region.c
+++ b/app/core/gimppickable-contiguous-region.c
@@ -239,12 +239,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)
@@ -262,12 +272,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"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]