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.
This commit is contained in:
parent
1aa51ca063
commit
815b7a438f
2 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue