mirror of https://github.com/GNOME/gimp.git
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:
parent
dde7108584
commit
1e739675a4
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue