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



commit f548021605fb81db653d915aae9e116584b3ae28
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).
    
    (cherry picked from commit fe8cb9788ba7a8c90c2dd4bfbf7b3e99de5c6a03)

 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 90fb41d..5200b9a 100644
--- a/plug-ins/common/edge-sobel.c
+++ b/plug-ins/common/edge-sobel.c
@@ -173,9 +173,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]