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



commit 762c707b838a9c766aa0f4b151c4d164da95c92b
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
    (cherry picked from commit 2d419a0cb1e4135caddf7f2a1795947db39bcda5)

 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 030577b..83fa705 100644
--- a/plug-ins/common/sample-colorize.c
+++ b/plug-ins/common/sample-colorize.c
@@ -389,6 +389,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]