[gegl] operations/common-gpl3+: s/_context_get_source/_context_dup_object/
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations/common-gpl3+: s/_context_get_source/_context_dup_object/
- Date: Tue, 21 Nov 2017 20:42:24 +0000 (UTC)
commit cbd54f0c0cc02c2a153532c800ad7fc86627ce38
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Nov 21 19:58:00 2017 +0100
operations/common-gpl3+: s/_context_get_source/_context_dup_object/
operations/common-gpl3+/displace.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/operations/common-gpl3+/displace.c b/operations/common-gpl3+/displace.c
index 758853b..c740d33 100644
--- a/operations/common-gpl3+/displace.c
+++ b/operations/common-gpl3+/displace.c
@@ -431,8 +431,8 @@ operation_process (GeglOperation *operation,
GeglBuffer *output;
gboolean success;
- aux = gegl_operation_context_get_source (context, "aux");
- aux2 = gegl_operation_context_get_source (context, "aux2");
+ aux = (GeglBuffer*) gegl_operation_context_dup_object (context, "aux");
+ aux2 = (GeglBuffer*) gegl_operation_context_dup_object (context, "aux2");
if ((!aux && !aux2) ||
(GEGL_FLOAT_IS_ZERO (o->amount_x) && GEGL_FLOAT_IS_ZERO (o->amount_y)))
@@ -444,7 +444,7 @@ operation_process (GeglOperation *operation,
}
else
{
- input = gegl_operation_context_get_source (context, "input");
+ input = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
output = gegl_operation_context_get_target (context, "output");
success = process (operation, input, aux, aux2, output, result, level);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]