Commit d420a5bf authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

simplify check for "inside selected region".

2005-07-11  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpclonetool.c (gimp_clone_tool_cursor_update):
	simplify check for "inside selected region".
parent fea22909
2005-07-11 Michael Natterer <mitch@gimp.org>
* app/tools/gimpclonetool.c (gimp_clone_tool_cursor_update):
simplify check for "inside selected region".
2005-07-11 Michael Natterer <mitch@gimp.org>
* app/core/gimplayer.c: added read-only properties "opacity",
......
......@@ -221,9 +221,8 @@ gimp_clone_tool_cursor_update (GimpTool *tool,
/* One more test--is there a selected region?
* if so, is cursor inside?
*/
if (gimp_channel_is_empty (selection))
ctype = GIMP_CURSOR_MOUSE;
else if (gimp_channel_value (selection, coords->x, coords->y))
if (gimp_channel_is_empty (selection) ||
gimp_channel_value (selection, coords->x, coords->y))
ctype = GIMP_CURSOR_MOUSE;
}
......
......@@ -221,9 +221,8 @@ gimp_clone_tool_cursor_update (GimpTool *tool,
/* One more test--is there a selected region?
* if so, is cursor inside?
*/
if (gimp_channel_is_empty (selection))
ctype = GIMP_CURSOR_MOUSE;
else if (gimp_channel_value (selection, coords->x, coords->y))
if (gimp_channel_is_empty (selection) ||
gimp_channel_value (selection, coords->x, coords->y))
ctype = GIMP_CURSOR_MOUSE;
}
......
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