[gimp] app: gimp_channel_new_from_alpha(): use gimp_drawable_get_component_format()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: gimp_channel_new_from_alpha(): use gimp_drawable_get_component_format()
- Date: Mon, 2 Jun 2014 06:15:47 +0000 (UTC)
commit e424b9ebbdb581014a9ab300b2e2f959d3da3a20
Author: Michael Natterer <mitch gimp org>
Date: Mon Jun 2 08:12:48 2014 +0200
app: gimp_channel_new_from_alpha(): use gimp_drawable_get_component_format()
app/core/gimpchannel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index a504112..0e70915 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -1604,8 +1604,8 @@ gimp_channel_new_from_alpha (GimpImage *image,
dest_buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (channel));
gegl_buffer_set_format (dest_buffer,
- gimp_image_get_component_format (image,
- GIMP_ALPHA_CHANNEL));
+ gimp_drawable_get_component_format (drawable,
+ GIMP_ALPHA_CHANNEL));
gegl_buffer_copy (gimp_drawable_get_buffer (drawable), NULL,
dest_buffer, NULL);
gegl_buffer_set_format (dest_buffer, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]