mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 20:12:30 +00:00
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:
parent
e5196e3017
commit
4e996afa94
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue