[gimp/pippin/goat-invasion] app: revert f5c7e7483b9dc
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/pippin/goat-invasion] app: revert f5c7e7483b9dc
- Date: Thu, 15 Mar 2012 01:02:20 +0000 (UTC)
commit 5f301c0ef7232393b40ef5eff03f3d68ea6ccf45
Author: Ãyvind KolÃs <pippin gimp org>
Date: Thu Mar 15 00:26:51 2012 +0000
app: revert f5c7e7483b9dc
The fix only added unneeded code, my test case was nondeterministic.
app/gegl/gimptilebackendtilemanager.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/gegl/gimptilebackendtilemanager.c b/app/gegl/gimptilebackendtilemanager.c
index 49343ec..4af35a5 100644
--- a/app/gegl/gimptilebackendtilemanager.c
+++ b/app/gegl/gimptilebackendtilemanager.c
@@ -218,15 +218,14 @@ gimp_tile_write (GimpTileBackendTileManager *backend_tm,
tile_stride = TILE_WIDTH * tile_bpp (gimp_tile);
gimp_tile_stride = tile_ewidth (gimp_tile) * tile_bpp (gimp_tile);
- if (source != tile_data_pointer (gimp_tile, 0, 0) ||
- (tile_stride != gimp_tile_stride || TILE_HEIGHT != tile_eheight (gimp_tile)))
+ if (source != tile_data_pointer (gimp_tile, 0, 0))
for (row = 0; row < tile_eheight (gimp_tile); row++)
memcpy (tile_data_pointer (gimp_tile, 0, row),
source + row * tile_stride,
gimp_tile_stride);
else
{
- /* no copy needed */
+ /* no copy needed, source and target memory are the same */
}
tile_release (gimp_tile, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]