GNOME Bugzilla – Bug 796073
Zero-size selections affect movement of pasted content in weird ways
Last modified: 2018-05-15 22:01:15 UTC
Try the following: - make sure something paste-able is available (e.g. by a prior copy) - create as zero-size selection, either by invoking bug 796071 or adjusting the size yourself - paste - try to move the pasted content with the active selection tool You should find that an unexpected drag towards the lower-right happens. This can also be reproduced with GIMP 2.8, which is otherwise unaffected by bug 796071. See also https://old.reddit.com/r/GIMP/comments/8ixiij/annoying_bugs_in_2100_with_selection_tools/
This should fix it: commit 918f60836ded0a5516576e5a82bd22ca51982f68 Author: Michael Natterer <mitch@gimp.org> Date: Tue May 15 23:55:48 2018 +0200 Bug 796073 - Zero-size selections affect movement of pasted content... ...in weird ways In gimp_rectangle_tool_button_press(), when the press triggers a GimpEditSelectionTool operation (like moving a floating selection), make sure we don't call COMMIT on a zero-size rectangle, because that would get special treatment by commit(). Instead, CANCEL a zero-size rectangle so stuff behaves as if it has never been there. app/tools/gimprectangleselecttool.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-)