[gimp] app: fix gimp_tool_rectangle_frame_item()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix gimp_tool_rectangle_frame_item()
- Date: Wed, 28 Jun 2017 12:14:29 +0000 (UTC)
commit 719f96d89a0b22d3a94486851f24d0352208aa1e
Author: Michael Natterer <mitch gimp org>
Date: Wed Jun 28 14:12:19 2017 +0200
app: fix gimp_tool_rectangle_frame_item()
it was setting double properties from integers, boom.
app/display/gimptoolrectangle.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/app/display/gimptoolrectangle.c b/app/display/gimptoolrectangle.c
index 168b0f7..21c4137 100644
--- a/app/display/gimptoolrectangle.c
+++ b/app/display/gimptoolrectangle.c
@@ -3954,21 +3954,19 @@ gimp_tool_rectangle_frame_item (GimpToolRectangle *rectangle,
gimp_item_get_offset (item, &offset_x, &offset_y);
- gimp_tool_rectangle_set_function (rectangle,
- GIMP_TOOL_RECTANGLE_CREATING);
+ gimp_tool_rectangle_set_function (rectangle, GIMP_TOOL_RECTANGLE_CREATING);
g_object_set (rectangle,
- "x1", offset_x,
- "y1", offset_y,
- "x2", offset_x + width,
- "y2", offset_y + height,
+ "x1", (gdouble) offset_x,
+ "y1", (gdouble) offset_y,
+ "x2", (gdouble) (offset_x + width),
+ "y2", (gdouble) (offset_y + height),
NULL);
/* kludge to force handle sizes to update. This call may be harmful
* if this function is ever moved out of the text tool code.
*/
- gimp_tool_rectangle_set_constraint (rectangle,
- GIMP_RECTANGLE_CONSTRAIN_NONE);
+ gimp_tool_rectangle_set_constraint (rectangle, GIMP_RECTANGLE_CONSTRAIN_NONE);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]