[gimp/gimp-2-6] Bug 565001 - Text-Tool crashes when edit a 2.4.2 version xcf



commit 18e3c7240bae097b96c50a09876e1e2f5042637b
Author: Michael Natterer <mitch gimp org>
Date:   Tue Mar 2 15:08:37 2010 +0100

    Bug 565001 - Text-Tool crashes when edit a 2.4.2 version xcf
    
    Need to convert to text->box_unit, not text->unit.

 app/tools/gimptexttool.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index e5716bd..d1301ec 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -937,11 +937,11 @@ gimp_text_tool_create_layer (GimpTextTool *text_tool,
                     "box-mode",   GIMP_TEXT_BOX_FIXED,
                     "box-width",  pixels_to_units (text_tool->image->gimp,
                                                    x2 - x1,
-                                                   text_tool->proxy->unit,
+                                                   text_tool->proxy->box_unit,
                                                    xres),
                     "box-height", pixels_to_units (text_tool->image->gimp,
                                                    y2 - y1,
-                                                   text_tool->proxy->unit,
+                                                   text_tool->proxy->box_unit,
                                                    yres),
                     NULL);
       gimp_item_translate (item,
@@ -1344,11 +1344,11 @@ gimp_text_tool_rectangle_change_complete (GimpRectangleTool *rect_tool)
                     "box-mode",   GIMP_TEXT_BOX_FIXED,
                     "box-width",  pixels_to_units (image->gimp,
                                                    x2 - x1,
-                                                   text_tool->proxy->unit,
+                                                   text_tool->proxy->box_unit,
                                                    xres),
                     "box-height", pixels_to_units (image->gimp,
                                                    y2 - y1,
-                                                   text_tool->proxy->unit,
+                                                   text_tool->proxy->box_unit,
                                                    yres),
                     NULL);
 



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