From 815b7a438fc61913d4ad753ac368d3971af4e665 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Tue, 27 Jan 2026 03:27:20 +0000 Subject: [PATCH] app, pdb: Fix arguments for Gimp.clone ()... ...and Gimp.heal (). The "src-x" and "src-y" arguments for the PDB Gimp.clone () and Gimp.heal () PDB commands belong to GimpSourceOptions (which is a child of GimpPaintOptions). However, we were setting them to GimpPaintCore instead, resulting in them being ignored when cloning/healing via the PDB. This patch moves them to the correct variable to be set, similar to how 1abb4543 moved "src-drawables" to the GimpSourceOptions variable. --- app/pdb/paint-tools-cmds.c | 8 ++++---- pdb/groups/paint_tools.pdb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/pdb/paint-tools-cmds.c b/app/pdb/paint-tools-cmds.c index 7e216dbc77..74983e4d3d 100644 --- a/app/pdb/paint-tools-cmds.c +++ b/app/pdb/paint-tools-cmds.c @@ -235,13 +235,13 @@ clone_invoker (GimpProcedure *procedure, g_object_set (options, "clone-type", clone_type, "src-drawables", src_drawables, + "src-x", (gint) floor (src_x), + "src-y", (gint) floor (src_y), NULL); success = paint_tools_stroke (gimp, context, options, drawable, num_strokes, strokes, error, "undo-desc", options->paint_info->blurb, - "src-x", (gint) floor (src_x), - "src-y", (gint) floor (src_y), NULL); g_list_free (src_drawables); } @@ -617,13 +617,13 @@ heal_invoker (GimpProcedure *procedure, g_object_set (options, "src-drawables", src_drawables, + "src-x", (gint) floor (src_x), + "src-y", (gint) floor (src_y), NULL); success = paint_tools_stroke (gimp, context, options, drawable, num_strokes, strokes, error, "undo-desc", options->paint_info->blurb, - "src-x", (gint) floor (src_x), - "src-y", (gint) floor (src_y), NULL); g_list_free (src_drawables); } diff --git a/pdb/groups/paint_tools.pdb b/pdb/groups/paint_tools.pdb index 7eb96ef588..1aefc8193d 100644 --- a/pdb/groups/paint_tools.pdb +++ b/pdb/groups/paint_tools.pdb @@ -180,13 +180,13 @@ HELP g_object_set (options, "clone-type", clone_type, "src-drawables", src_drawables, + "src-x", (gint) floor (src_x), + "src-y", (gint) floor (src_y), NULL); success = paint_tools_stroke (gimp, context, options, drawable, num_strokes, strokes, error, "undo-desc", options->paint_info->blurb, - "src-x", (gint) floor (src_x), - "src-y", (gint) floor (src_y), NULL); g_list_free (src_drawables); } @@ -542,13 +542,13 @@ HELP g_object_set (options, "src-drawables", src_drawables, + "src-x", (gint) floor (src_x), + "src-y", (gint) floor (src_y), NULL); success = paint_tools_stroke (gimp, context, options, drawable, num_strokes, strokes, error, "undo-desc", options->paint_info->blurb, - "src-x", (gint) floor (src_x), - "src-y", (gint) floor (src_y), NULL); g_list_free (src_drawables); }