[gimp] Bug 732698 - Select > Shrink/Grow/Border not working in GIMP master



commit 249041d9270f7d012527480b6902a86c326838c3
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jul 3 20:47:02 2014 +0200

    Bug 732698 - Select > Shrink/Grow/Border not working in GIMP master
    
    Always pass level = 0 to gegl_buffer_set(). This actually makes a
    difference since GEGL's level processing got some fixes.

 app/operations/gimpoperationborder.c     |    6 +++---
 app/operations/gimpoperationgrow.c       |    2 +-
 app/operations/gimpoperationshapeburst.c |    2 +-
 app/operations/gimpoperationshrink.c     |    2 +-
 app/pdb/drawable-cmds.c                  |    2 +-
 tools/pdbgen/pdb/drawable.pdb            |    2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/app/operations/gimpoperationborder.c b/app/operations/gimpoperationborder.c
index ab0fa1b..b25c46e 100644
--- a/app/operations/gimpoperationborder.c
+++ b/app/operations/gimpoperationborder.c
@@ -406,7 +406,7 @@ gimp_operation_border_process (GeglOperation       *operation,
       gegl_buffer_set (output,
                        GEGL_RECTANGLE (roi->x, roi->y,
                                        roi->width, 1),
-                       1.0, output_format, transition,
+                       0, output_format, transition,
                        GEGL_AUTO_ROWSTRIDE);
 
       for (y = 1; y < roi->height; y++)
@@ -441,7 +441,7 @@ gimp_operation_border_process (GeglOperation       *operation,
           gegl_buffer_set (output,
                            GEGL_RECTANGLE (roi->x, roi->y + y,
                                            roi->width, 1),
-                           1.0, output_format, transition,
+                           0, output_format, transition,
                            GEGL_AUTO_ROWSTRIDE);
         }
 
@@ -713,7 +713,7 @@ gimp_operation_border_process (GeglOperation       *operation,
       gegl_buffer_set (output,
                        GEGL_RECTANGLE (roi->x, roi->y + y,
                                        roi->width, 1),
-                       1.0, output_format, out,
+                       0, output_format, out,
                        GEGL_AUTO_ROWSTRIDE);
     }
 
diff --git a/app/operations/gimpoperationgrow.c b/app/operations/gimpoperationgrow.c
index 2aa8c86..97c40a1 100644
--- a/app/operations/gimpoperationgrow.c
+++ b/app/operations/gimpoperationgrow.c
@@ -367,7 +367,7 @@ gimp_operation_grow_process (GeglOperation       *operation,
       gegl_buffer_set (output,
                        GEGL_RECTANGLE (roi->x, roi->y + y,
                                        roi->width, 1),
-                       1.0, output_format, out,
+                       0, output_format, out,
                        GEGL_AUTO_ROWSTRIDE);
     }
 
diff --git a/app/operations/gimpoperationshapeburst.c b/app/operations/gimpoperationshapeburst.c
index 6c73bab..af4714c 100644
--- a/app/operations/gimpoperationshapeburst.c
+++ b/app/operations/gimpoperationshapeburst.c
@@ -307,7 +307,7 @@ gimp_operation_shapeburst_process (GeglOperation       *operation,
       gegl_buffer_set (output,
                        GEGL_RECTANGLE (roi->x, roi->y + y,
                                        roi->width, 1),
-                       1.0, output_format, distbuf_cur,
+                       0, output_format, distbuf_cur,
                        GEGL_AUTO_ROWSTRIDE);
 
       g_object_set (operation,
diff --git a/app/operations/gimpoperationshrink.c b/app/operations/gimpoperationshrink.c
index 40f28ee..663ad05 100644
--- a/app/operations/gimpoperationshrink.c
+++ b/app/operations/gimpoperationshrink.c
@@ -418,7 +418,7 @@ gimp_operation_shrink_process (GeglOperation       *operation,
       gegl_buffer_set (output,
                        GEGL_RECTANGLE (roi->x, roi->y + y,
                                        roi->width, 1),
-                       1.0, output_format, out,
+                       0, output_format, out,
                        GEGL_AUTO_ROWSTRIDE);
     }
 
diff --git a/app/pdb/drawable-cmds.c b/app/pdb/drawable-cmds.c
index 75cfce1..ca1f080 100644
--- a/app/pdb/drawable-cmds.c
+++ b/app/pdb/drawable-cmds.c
@@ -684,7 +684,7 @@ drawable_set_pixel_invoker (GimpProcedure         *procedure,
         {
           gegl_buffer_set (gimp_drawable_get_buffer (drawable),
                            GEGL_RECTANGLE (x_coord, y_coord, 1, 1),
-                           1.0, format, pixel, GEGL_AUTO_ROWSTRIDE);
+                           0, format, pixel, GEGL_AUTO_ROWSTRIDE);
         }
       else
         success = FALSE;
diff --git a/tools/pdbgen/pdb/drawable.pdb b/tools/pdbgen/pdb/drawable.pdb
index 20ad1cb..dc73d75 100644
--- a/tools/pdbgen/pdb/drawable.pdb
+++ b/tools/pdbgen/pdb/drawable.pdb
@@ -692,7 +692,7 @@ HELP
     {
       gegl_buffer_set (gimp_drawable_get_buffer (drawable),
                        GEGL_RECTANGLE (x_coord, y_coord, 1, 1),
-                       1.0, format, pixel, GEGL_AUTO_ROWSTRIDE);
+                       0, format, pixel, GEGL_AUTO_ROWSTRIDE);
     }
   else
     success = FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]