After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167002 - Clone source in wrong place when cloning from one picture to another.
Clone source in wrong place when cloning from one picture to another.
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
2.2.x
Other All
: Normal minor
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-02-10 22:34 UTC by Paul de Ville forte
Modified: 2008-01-15 12:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for app/tools/gimpclonetool.[ch] from cvs HEAD (2.32 KB, patch)
2005-02-14 20:24 UTC, weskaggs
none Details | Review
revised patch for app/tools/gimpclonetool.[ch] (3.16 KB, patch)
2005-02-14 21:46 UTC, weskaggs
accepted-commit_now Details | Review

Description Paul de Ville forte 2005-02-10 22:34:16 UTC
Distribution/Version: Current

Had this problem also in the past.  When I use the clone tool and clone from one
picture to another it shows the source in the wrong location, normally within
the destination picture.  It still moves with the mouse?  

I have not changed my screen resolution and it is common to all machines I use
GIMP on.
Comment 1 weskaggs 2005-02-14 20:24:01 UTC
Created attachment 37470 [details] [review]
patch for app/tools/gimpclonetool.[ch] from cvs HEAD

The attached patch solves the problem for me.  It works by remembering the
gdisp in the button-press callback, and setting the draw tool's gdisp to the
remembered gdisp when drawing the source marker.
Comment 2 Sven Neumann 2005-02-14 20:35:22 UTC
You should declare the pointer to src display as a weak pointer so that it is
nullified if the display goes away.

I wonder when this feature got lost. I think it used to work at some point in
time...
Comment 3 weskaggs 2005-02-14 21:46:30 UTC
Created attachment 37473 [details] [review]
revised patch for app/tools/gimpclonetool.[ch]

Revised to make it a weak pointer as requested.  I tested by closing the view
on which the clone source is set, and there are no error messages -- although
of course the source marker goes away.
Comment 4 Sven Neumann 2005-02-15 14:40:49 UTC
Looks correct to me, but I'd like to have Mitch comment on this change before it
goes into the stable tree.
Comment 5 Michael Natterer 2005-02-16 14:29:57 UTC
Patch looks fine. Please commit to both branches.
Comment 6 weskaggs 2005-02-16 19:19:19 UTC
Okay, fixed in both branches.

2005-02-16  Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/tools/gimpclonetool.[ch]: make sure clone source is
	shown in correct display, fixes bug #167002.