[gimp/goat-invasion: 38/73] app: revert f5c7e7483b9dc
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 38/73] app: revert f5c7e7483b9dc
- Date: Fri, 16 Mar 2012 13:00:50 +0000 (UTC)
commit 220a544d8a346331c8678a1d9c51230747e11a47
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]