app: add "show all" support to the Smudge tool

... by using gimp_paint_core_get_image_pickable() in GimpSmude.
This commit is contained in:
Ell 2019-09-06 20:02:37 +03:00
parent 2523808e4a
commit 84656cb3d4
1 changed files with 2 additions and 3 deletions

View File

@ -208,7 +208,6 @@ gimp_smudge_start (GimpPaintCore *paint_core,
GimpSmudge *smudge = GIMP_SMUDGE (paint_core);
GimpBrushCore *brush_core = GIMP_BRUSH_CORE (paint_core);
GimpSmudgeOptions *options = GIMP_SMUDGE_OPTIONS (paint_options);
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
GimpPickable *dest_pickable;
GeglBuffer *pickable_buffer;
GeglBuffer *paint_buffer;
@ -230,7 +229,7 @@ gimp_smudge_start (GimpPaintCore *paint_core,
if (options->sample_merged)
{
dest_pickable = GIMP_PICKABLE (image);
dest_pickable = gimp_paint_core_get_image_pickable (paint_core);
gimp_item_get_offset (GIMP_ITEM (drawable),
&dest_pickable_off_x,
@ -369,7 +368,7 @@ gimp_smudge_motion (GimpPaintCore *paint_core,
if (options->sample_merged)
{
dest_pickable = GIMP_PICKABLE (image);
dest_pickable = gimp_paint_core_get_image_pickable (paint_core);
gimp_item_get_offset (GIMP_ITEM (drawable),
&dest_pickable_off_x,