[gimp] app: add "show all" support to the Smudge tool



commit 84656cb3d423183fc3f6aa73d52b284bd29a2d17
Author: Ell <ell_se yahoo com>
Date:   Fri Sep 6 20:02:37 2019 +0300

    app: add "show all" support to the Smudge tool
    
    ... by using gimp_paint_core_get_image_pickable() in GimpSmude.

 app/paint/gimpsmudge.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/paint/gimpsmudge.c b/app/paint/gimpsmudge.c
index 224d3f0326..86f61bf1e7 100644
--- a/app/paint/gimpsmudge.c
+++ b/app/paint/gimpsmudge.c
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]