[gimp] Bug 565001 - Text-Tool crashes when edit a 2.4.2 version xcf
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 565001 - Text-Tool crashes when edit a 2.4.2 version xcf
- Date: Tue, 2 Mar 2010 17:43:58 +0000 (UTC)
commit 6d4f2c3431e8d3c229ecd3ac5952b287d10983fb
Author: Michael Natterer <mitch gimp org>
Date: Tue Mar 2 15:24:17 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 496a694..a82d1cd 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -873,10 +873,10 @@ gimp_text_tool_rectangle_change_complete (GimpRectangleTool *rect_tool)
g_object_set (text_tool->proxy,
"box-mode", GIMP_TEXT_BOX_FIXED,
"box-width", gimp_pixels_to_units (x2 - x1,
- text_tool->proxy->unit,
+ text_tool->proxy->box_unit,
xres),
"box-height", gimp_pixels_to_units (y2 - y1,
- text_tool->proxy->unit,
+ text_tool->proxy->box_unit,
yres),
NULL);
@@ -1309,10 +1309,10 @@ gimp_text_tool_create_layer (GimpTextTool *text_tool,
g_object_set (text_tool->proxy,
"box-mode", GIMP_TEXT_BOX_FIXED,
"box-width", gimp_pixels_to_units (x2 - x1,
- text_tool->proxy->unit,
+ text_tool->proxy->box_unit,
xres),
"box-height", gimp_pixels_to_units (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]