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.
This commit is contained in:
Ell 2019-03-01 09:04:26 -05:00
parent dde7108584
commit 1e739675a4
1 changed files with 1 additions and 1 deletions

View File

@ -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,