From beb4ecb2383a49c3928ed4e5a1c4766af47f0951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 11 Sep 2018 01:33:36 +0200 Subject: [PATCH] app: migrate iscissorstool to new iterator api --- app/tools/gimpiscissorstool.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/tools/gimpiscissorstool.c b/app/tools/gimpiscissorstool.c index abfec2aaf6..67fb62f7ee 100644 --- a/app/tools/gimpiscissorstool.c +++ b/app/tools/gimpiscissorstool.c @@ -46,6 +46,7 @@ #include +#define GEGL_ITERATOR2_API #include #include #include @@ -1914,12 +1915,12 @@ find_max_gradient (GimpIscissorsTool *iscissors, iter = gegl_buffer_iterator_new (iscissors->gradient_map, GEGL_RECTANGLE (x1, y1, x2 - x1, y2 - y1), 0, NULL, - GEGL_ACCESS_READ, GEGL_ABYSS_NONE); - roi = &iter->roi[0]; + GEGL_ACCESS_READ, GEGL_ABYSS_NONE, 1); + roi = &iter->items[0].roi; while (gegl_buffer_iterator_next (iter)) { - guint8 *data = iter->data[0]; + guint8 *data = iter->items[0].data; gint endx = roi->x + roi->width; gint endy = roi->y + roi->height; gint i, j;