[gimp/gimp-2-8] plug-ins: Move children variables inside the lcms group layer check



commit d04b46d96026066e33252be1029ef0a8a3d55c80
Author: Michael Schumacher <schumaml gmx de>
Date:   Wed Mar 8 01:04:42 2017 +0100

    plug-ins: Move children variables inside the lcms group layer check

 plug-ins/common/lcms.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/lcms.c b/plug-ins/common/lcms.c
index 696af46..232ed13 100644
--- a/plug-ins/common/lcms.c
+++ b/plug-ins/common/lcms.c
@@ -1052,11 +1052,12 @@ lcms_layers_transform_rgb (gint                     *layers,
     {
       GimpDrawable    *drawable = gimp_drawable_get (layers[i]);
       cmsUInt32Number  format;
-      gint            *children;
-      gint             num_children;
 
       if (gimp_item_is_group (layers[i]))
        {
+         gint *children;
+         gint  num_children;
+
          children = gimp_item_get_children (layers[i], &num_children);
 
          if (children)


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