added check for GIMP_TRANSLATE_MODE_MASK_COPY_TO_LAYER which was forgotten

2006-08-15  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpeditselectiontool.c (gimp_edit_selection_tool_start):
	added check for GIMP_TRANSLATE_MODE_MASK_COPY_TO_LAYER which was
	forgotten when this mode was introduced.
This commit is contained in:
Michael Natterer 2006-08-15 21:15:49 +00:00 committed by Michael Natterer
parent 1f63110d52
commit 2a97cb07c1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-08-15 Michael Natterer <mitch@gimp.org>
* app/tools/gimpeditselectiontool.c (gimp_edit_selection_tool_start):
added check for GIMP_TRANSLATE_MODE_MASK_COPY_TO_LAYER which was
forgotten when this mode was introduced.
2006-08-15 Sven Neumann <sven@gimp.org>
* libgimp/gimp.[ch] (gimp_shm_addr): the return value isn't const.

View File

@ -198,7 +198,8 @@ gimp_edit_selection_tool_start (GimpTool *parent_tool,
shell = GIMP_DISPLAY_SHELL (display->shell);
/* Make a check to see if it should be a floating selection translation */
if (edit_mode == GIMP_TRANSLATE_MODE_MASK_TO_LAYER &&
if ((edit_mode == GIMP_TRANSLATE_MODE_MASK_TO_LAYER ||
edit_mode == GIMP_TRANSLATE_MODE_MASK_COPY_TO_LAYER) &&
gimp_image_floating_sel (display->image))
{
edit_mode = GIMP_TRANSLATE_MODE_FLOATING_SEL;