aded a comment explaining why copy_region_nocow() is being used here.

2008-08-07  Sven Neumann  <sven@gimp.org>

	* app/core/gimpselection.c (gimp_selection_extract): aded a
	comment explaining why copy_region_nocow() is being used here.


svn path=/trunk/; revision=26418
This commit is contained in:
Sven Neumann 2008-08-07 13:45:28 +00:00 committed by Sven Neumann
parent e5196e3017
commit 4e996afa94
2 changed files with 16 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2008-08-07 Sven Neumann <sven@gimp.org>
* app/core/gimpselection.c (gimp_selection_extract): aded a
comment explaining why copy_region_nocow() is being used here.
2008-08-07 Sven Neumann <sven@gimp.org>
* app/core/gimplayer.c (gimp_layer_new_from_region): added some

View file

@ -753,10 +753,18 @@ gimp_selection_extract (GimpChannel *selection,
else
{
/* Otherwise, do a straight copy */
if (! GIMP_IS_DRAWABLE (pickable))
copy_region_nocow (&srcPR, &destPR);
if (GIMP_IS_DRAWABLE (pickable))
{
copy_region (&srcPR, &destPR);
}
else
copy_region (&srcPR, &destPR);
{
/* There's a bug that shows up when shared tiles are
* invalidated. So we don't copy-on-write from the
* projection.
*/
copy_region_nocow (&srcPR, &destPR);
}
}
/* If we're cutting, remove either the layer (or floating selection),