[gimp] plug-ins: add missing GIMP_ITEM() cast in curve-bend



commit 5567a893479e619eebe73feea656a4841df8aab5
Author: Michael Natterer <mitch gimp org>
Date:   Fri Aug 30 12:59:30 2019 +0200

    plug-ins: add missing GIMP_ITEM() cast in curve-bend

 plug-ins/common/curve-bend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/common/curve-bend.c b/plug-ins/common/curve-bend.c
index 1dce17c566..27cc3ae243 100644
--- a/plug-ins/common/curve-bend.c
+++ b/plug-ins/common/curve-bend.c
@@ -650,7 +650,7 @@ run (const gchar      *name,
   image_id = param[1].data.d_int32;
   layer_id = param[2].data.d_drawable;
 
-  if (! gimp_item_is_layer (layer_id))
+  if (! gimp_item_is_layer (GIMP_ITEM (layer_id)))
     {
       g_set_error (&error, 0, 0, "%s",
                    _("Can operate on layers only "


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]