[gimp/goat-invasion: 48/412] app: clear gimp_image_merge_layers()'s merged layer with gegl_buffer_clear()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 48/412] app: clear gimp_image_merge_layers()'s merged layer with gegl_buffer_clear()
- Date: Tue, 3 Apr 2012 09:37:09 +0000 (UTC)
commit 70dd3dca96ef6743229595feea4e08d855212489
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 15 12:26:17 2012 +0100
app: clear gimp_image_merge_layers()'s merged layer with gegl_buffer_clear()
app/core/gimpimage-merge.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/app/core/gimpimage-merge.c b/app/core/gimpimage-merge.c
index 28eed3a..9acc356 100644
--- a/app/core/gimpimage-merge.c
+++ b/app/core/gimpimage-merge.c
@@ -32,6 +32,8 @@
#include "paint-funcs/paint-funcs.h"
+#include "gegl/gimp-gegl-utils.h"
+
#include "vectors/gimpvectors.h"
#include "gimp.h"
@@ -574,12 +576,8 @@ gimp_image_merge_layers (GimpImage *image,
gimp_item_set_offset (GIMP_ITEM (merge_layer), x1, y1);
/* clear the layer */
- pixel_region_init (&src1PR,
- gimp_drawable_get_tiles (GIMP_DRAWABLE (merge_layer)),
- 0, 0,
- (x2 - x1), (y2 - y1),
- TRUE);
- clear_region (&src1PR);
+ gegl_buffer_clear (gimp_drawable_get_write_buffer (GIMP_DRAWABLE (merge_layer)),
+ NULL);
/* Find the index in the layer list of the bottom layer--we need this
* in order to add the final, merged layer to the layer list correctly
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]