make the first of the added layers the active layer. Fixes bug #469752.

2007-09-11  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage.c (gimp_image_add_layers): make the first of
	the added layers the active layer. Fixes bug #469752.

svn path=/trunk/; revision=23501
This commit is contained in:
Sven Neumann 2007-09-11 14:12:51 +00:00 committed by Sven Neumann
parent aeadf45cfa
commit ce32eed304
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-09-11 Sven Neumann <sven@gimp.org>
* app/core/gimpimage.c (gimp_image_add_layers): make the first of
the added layers the active layer. Fixes bug #469752.
2007-09-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/spread.c (spread_dialog): update the preview on

View File

@ -3036,6 +3036,9 @@ gimp_image_add_layers (GimpImage *image,
position++;
}
if (layers)
gimp_image_set_active_layer (image, layers->data);
gimp_image_undo_group_end (image);
}