GNOME Bugzilla – Bug 342506
New rect select tool crash
Last modified: 2006-05-23 16:13:31 UTC
Steps to reproduce: - make a selection with the new rect select tool - click inside it to turn it to the interactive rectangle interface - click inside it, near a border to turn it back to a selection Crash because of NULL display, didn't manage to understand it yet.
+ Trace 68357
The cause of the problme is in lines 246-248 of gimpnewrectselecttool.c: gimp_rectangle_tool_button_release (tool, coords, time, state, display); if (function >= RECT_RESIZING_UPPER_LEFT && function <= RECT_RESIZING_BOTTOM) gimp_rectangle_tool_response (NULL, GIMP_RECTANGLE_MODE_EXECUTE, rectangle); This causes gimp_rectangle_tool_response() to be executed twice whenever the mouse is near the edge, first via the button_release callback, then directly. Since the first pass sets tool->display to NULL, the seond pass blows up. I don't understand the purpose of these lines (it seems to have something to do with automatically creating a selection on button release), so I won't try to fix the problem at this moment.
Thanks for your help! 2006-05-23 Karine Delvare <edhel@gimp.org> * app/tools/gimpnewrectselecttool.c: don't execute gimp_rectangle_tool_response() twice. Fixes bug #342506.