[gimp] Bug 581338 - Layer size does not change using the pdb 'gimp-text-layer-resize'



commit 4f59bb343198582d685a0babdccd1b5b69bf607d
Author: Michael Natterer <mitch gimp org>
Date:   Mon Feb 28 00:41:48 2011 +0100

    Bug 581338 - Layer size does not change using the pdb 'gimp-text-layer-resize'
    
    Fix the fix: use box-unit, not unit, for the box extents.

 app/pdb/text-layer-cmds.c       |    4 ++--
 tools/pdbgen/pdb/text_layer.pdb |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/pdb/text-layer-cmds.c b/app/pdb/text-layer-cmds.c
index ba41ab6..f8cf681 100644
--- a/app/pdb/text-layer-cmds.c
+++ b/app/pdb/text-layer-cmds.c
@@ -1112,10 +1112,10 @@ text_layer_resize_invoker (GimpProcedure      *procedure,
                                _("Set text layer attribute"),
                                "box-mode",   GIMP_TEXT_BOX_FIXED,
                                "box-width",  gimp_pixels_to_units (width,
-                                                                   text->unit,
+                                                                   text->box_unit,
                                                                    xres),
                                "box-height", gimp_pixels_to_units (height,
-                                                                   text->unit,
+                                                                   text->box_unit,
                                                                    yres),
                                NULL);
         }
diff --git a/tools/pdbgen/pdb/text_layer.pdb b/tools/pdbgen/pdb/text_layer.pdb
index 3c3db43..8140b32 100644
--- a/tools/pdbgen/pdb/text_layer.pdb
+++ b/tools/pdbgen/pdb/text_layer.pdb
@@ -1185,10 +1185,10 @@ HELP
                            _("Set text layer attribute"),
                            "box-mode",   GIMP_TEXT_BOX_FIXED,
                            "box-width",  gimp_pixels_to_units (width,
-                                                               text->unit,
+                                                               text->box_unit,
                                                                xres),
                            "box-height", gimp_pixels_to_units (height,
-                                                               text->unit,
+                                                               text->box_unit,
                                                                yres),
                            NULL);
     }



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