[gimp] app: don't always duplicate the source buffer in gimp_buffer_new()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't always duplicate the source buffer in gimp_buffer_new()
- Date: Fri, 24 Aug 2012 20:32:54 +0000 (UTC)
commit 095561f8bcbb5362b12f478856ac821b67fb1473
Author: Michael Natterer <mitch gimp org>
Date: Fri Aug 24 22:31:42 2012 +0200
app: don't always duplicate the source buffer in gimp_buffer_new()
Honor the passed copy_pixels boolean again. This was disabled during
GEGL porting and forgotten.
app/core/gimpbuffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpbuffer.c b/app/core/gimpbuffer.c
index d4b181c..304071b 100644
--- a/app/core/gimpbuffer.c
+++ b/app/core/gimpbuffer.c
@@ -249,7 +249,7 @@ gimp_buffer_new (GeglBuffer *buffer,
"name", name,
NULL);
- if (TRUE /* XXX FIXME copy_pixels */)
+ if (copy_pixels)
gimp_buffer->buffer = gegl_buffer_dup (buffer);
else
gimp_buffer->buffer = g_object_ref (buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]