Commit 547190fa authored by Ell's avatar Ell

Issue #2116 - bug: Image guide creation by dragging does not allow ...

... 100% position anymore

In GimpGuideTool, use a closed [0, max_position] range as the
allowable range for new/repositioned guides (where max_position is
either the image's width or height), so that guides can be placed
at the right/bottom edge of the image.
parent d210199d
......@@ -139,7 +139,7 @@ gimp_guide_tool_button_release (GimpTool *tool,
if (guide_tool->guide_position == GIMP_GUIDE_POSITION_UNDEFINED ||
guide_tool->guide_position < 0 ||
guide_tool->guide_position >= max_position)
guide_tool->guide_position > max_position)
{
if (guide_tool->guide)
{
......@@ -248,7 +248,7 @@ gimp_guide_tool_motion (GimpTool *tool,
guide_tool->guide_position = RINT (coords->x);
if (guide_tool->guide_position < 0 ||
guide_tool->guide_position >= max_position)
guide_tool->guide_position > max_position)
{
delete_guide = TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment