[gimp/gimp-2-10] Issue #3037 - Crash in transform tools after transforming an out-of-bounds selection



commit efc632948f98250601e96143409da7e2b7528233
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.
    
    (cherry picked from commit 1e739675a4b0c6787b49c3fb32d583b511645964)

 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 d7df13012f..397911b8e9 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]