[gimp] Bug 738037 - Wrong order of parameters in the Sobel plugin



commit fe8cb9788ba7a8c90c2dd4bfbf7b3e99de5c6a03
Author: Michael Natterer <mitch gimp org>
Date:   Tue Oct 7 13:22:19 2014 +0200

    Bug 738037 - Wrong order of parameters in the Sobel plugin
    
    Get the parameters from the right PDB arguments (parameter index was
    off-by-one).

 plug-ins/common/edge-sobel.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/edge-sobel.c b/plug-ins/common/edge-sobel.c
index a4774a1..a604698 100644
--- a/plug-ins/common/edge-sobel.c
+++ b/plug-ins/common/edge-sobel.c
@@ -171,9 +171,9 @@ run (const gchar      *name,
         }
       else
         {
-          bvals.horizontal = (param[4].data.d_int32) ? TRUE : FALSE;
-          bvals.vertical   = (param[5].data.d_int32) ? TRUE : FALSE;
-          bvals.keep_sign  = (param[6].data.d_int32) ? TRUE : FALSE;
+          bvals.horizontal = (param[3].data.d_int32) ? TRUE : FALSE;
+          bvals.vertical   = (param[4].data.d_int32) ? TRUE : FALSE;
+          bvals.keep_sign  = (param[5].data.d_int32) ? TRUE : FALSE;
         }
       break;
 


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