[gimp] app: no reason to translate the newly created text layer



commit 9f03c457e17b6ba8e78714300dac39d7ded525a0
Author: Michael Natterer <mitch gimp org>
Date:   Fri Feb 19 10:57:00 2010 +0100

    app: no reason to translate the newly created text layer
    
    because a few lines up we set its offsets correctly before adding it
    to the image.

 app/tools/gimptexttool.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index abb9014..74ca757 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -1580,17 +1580,11 @@ gimp_text_tool_create_layer (GimpTextTool *text_tool,
 
   if (text_tool->text_box_fixed)
     {
-      GimpItem *item = GIMP_ITEM (layer);
-
       g_object_set (text_tool->proxy,
                     "box-mode",   GIMP_TEXT_BOX_FIXED,
                     "box-width",  (gdouble) (x2 - x1),
                     "box-height", (gdouble) (y2 - y1),
                     NULL);
-      gimp_item_translate (item,
-                           x1 - gimp_item_get_offset_x (item),
-                           y1 - gimp_item_get_offset_y (item),
-                           TRUE);
     }
   else
     {



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