[gimp] plug-ins: map-object, remove newlayer option from pdb



commit 58cc35a0e993a4715727101bd896f72cb6f452e4
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Sat Mar 5 22:17:56 2011 +0100

    plug-ins: map-object, remove newlayer option from pdb
    
    It broke compatibility with scripts and is mostly useful for interactive use anyway.

 plug-ins/map-object/map-object-main.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/map-object/map-object-main.c b/plug-ins/map-object/map-object-main.c
index 1c2bfb0..2572a27 100644
--- a/plug-ins/map-object/map-object-main.c
+++ b/plug-ins/map-object/map-object-main.c
@@ -240,7 +240,7 @@ run (const gchar      *name,
         /* Possibly retrieve data */
         /* ====================== */
 
-        gimp_get_data ("plug_in_map_object", &mapvals);
+        gimp_get_data (PLUG_IN_PROC, &mapvals);
         check_drawables (drawable);
         if (main_dialog (drawable))
           {
@@ -258,7 +258,7 @@ run (const gchar      *name,
         break;
 
       case GIMP_RUN_NONINTERACTIVE:
-        if (nparams != 50)
+        if (nparams != 49)
           {
             status = GIMP_PDB_CALLING_ERROR;
           }
@@ -296,7 +296,6 @@ run (const gchar      *name,
             mapvals.antialiasing            = (gint) param[32].data.d_int32;
             mapvals.tiled                   = (gint) param[33].data.d_int32;
             mapvals.create_new_image        = (gint) param[34].data.d_int32;
-            mapvals.create_new_layer        = (gint) param[34].data.d_int32;
             mapvals.transparent_background  = (gint) param[35].data.d_int32;
             mapvals.radius                  = param[36].data.d_float;
             mapvals.cylinder_radius         = param[36].data.d_float;
@@ -306,10 +305,10 @@ run (const gchar      *name,
             mapvals.cylinder_length         = param[40].data.d_float;
 
             for (i = 0; i < 6; i++)
-              mapvals.boxmap_id[i] = param[42+i].data.d_drawable;
+              mapvals.boxmap_id[i] = param[41+i].data.d_drawable;
 
             for (i = 0; i < 2; i++)
-              mapvals.cylindermap_id[i] = param[48+i].data.d_drawable;
+              mapvals.cylindermap_id[i] = param[47+i].data.d_drawable;
 
             check_drawables (drawable);
             image_setup (drawable, FALSE);



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