copy-on-write from the projection is not any longer broken, so use it

2008-12-27  Sven Neumann  <sven@gimp.org>

	* app/paint/gimppaintcore.c
	(gimp_paint_core_validate_saved_proj_tiles): copy-on-write from
	the projection is not any longer broken, so use it here.


svn path=/trunk/; revision=27837
This commit is contained in:
Sven Neumann 2008-12-27 16:11:54 +00:00 committed by Sven Neumann
parent a4daf7f210
commit f1c78b1df0
2 changed files with 7 additions and 11 deletions

View file

@ -1,3 +1,9 @@
2008-12-27 Sven Neumann <sven@gimp.org>
* app/paint/gimppaintcore.c
(gimp_paint_core_validate_saved_proj_tiles): copy-on-write from
the projection is not any longer broken, so use it here.
2008-12-27 Sven Neumann <sven@gimp.org>
Bug 564087 Using clone tool on a layer with a part out of canvas

View file

@ -1099,17 +1099,7 @@ gimp_paint_core_validate_saved_proj_tiles (GimpPaintCore *core,
tile_manager_get_tile (gimp_pickable_get_tiles (pickable),
j, i, TRUE, FALSE);
/* copy the pixels instead of mapping the tile because
* copy-on-write from the projection is broken
*/
dest_tile = tile_manager_get_tile (core->saved_proj_tiles,
j, i, TRUE, TRUE);
memcpy (tile_data_pointer (dest_tile, 0, 0),
tile_data_pointer (src_tile, 0, 0),
tile_size (src_tile));
tile_release (dest_tile, TRUE);
tile_manager_map_tile (core->saved_proj_tiles, j, i, src_tile);
tile_release (src_tile, FALSE);
}
}