[gimp] Bug 640612 - Sample Colorize does not function non-interactively



commit 2d419a0cb1e4135caddf7f2a1795947db39bcda5
Author: Saul Goode <saulgoode flashingtwelve brickfilms com>
Date:   Tue Jan 25 22:26:36 2011 -0500

    Bug 640612 - Sample Colorize does not function non-interactively
    
    Fixed bug with Sample Colorize plugin's non-interactive mode

 plug-ins/common/sample-colorize.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/sample-colorize.c b/plug-ins/common/sample-colorize.c
index 3c0be9d..c23ce2d 100644
--- a/plug-ins/common/sample-colorize.c
+++ b/plug-ins/common/sample-colorize.c
@@ -388,6 +388,15 @@ run (const gchar      *name,
               g_values.lvl_in_gamma  = param[10].data.d_float;
               g_values.lvl_out_min   = param[11].data.d_int32;
               g_values.lvl_out_max   = param[12].data.d_int32;
+              if (main_colorize (MC_GET_SAMPLE_COLORS) >= 0)
+                {
+                  main_colorize (MC_DST_REMAP);
+                  status = GIMP_PDB_SUCCESS;
+                }
+              else 
+                {
+                  status = GIMP_PDB_EXECUTION_ERROR;
+                }
             }
           else
             {



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