[gimp/metadata-browser] app: don't always duplicate the source buffer in gimp_buffer_new()
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: don't always duplicate the source buffer in gimp_buffer_new()
- Date: Thu, 13 Sep 2012 00:37:32 +0000 (UTC)
commit 7fa3867fe98a1ddaa5a75e9e7ee321d7216157d7
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]