[gimp] Issue #3037 - Crash in transform tools after transforming an out-of-bounds selection
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue #3037 - Crash in transform tools after transforming an out-of-bounds selection
- Date: Fri, 1 Mar 2019 14:07:54 +0000 (UTC)
commit 1e739675a4b0c6787b49c3fb32d583b511645964
Author: Ell <ell_se yahoo com>
Date: Fri Mar 1 09:04:26 2019 -0500
Issue #3037 - Crash in transform tools after transforming an out-of-bounds selection
In GimpTransformGridTool, fix weak-pointer initialization for the
out-of-bounds selection-boundary canvas item, to avoid a CRITICAL
when initializing the tool in transform-selection mode for a fully
out-of-bounds selection, and a subsequent segfault when re-
initializing the tool.
app/tools/gimptransformgridtool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/tools/gimptransformgridtool.c b/app/tools/gimptransformgridtool.c
index b54eec59e1..7127d9cfef 100644
--- a/app/tools/gimptransformgridtool.c
+++ b/app/tools/gimptransformgridtool.c
@@ -706,7 +706,7 @@ gimp_transform_grid_tool_draw (GimpDrawTool *draw_tool)
segs_out, n_segs_out,
&matrix,
0, 0);
- g_object_add_weak_pointer (G_OBJECT (tg_tool->boundary_in),
+ g_object_add_weak_pointer (G_OBJECT (tg_tool->boundary_out),
(gpointer) &tg_tool->boundary_out);
gimp_canvas_item_set_visible (tg_tool->boundary_out,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]