[gimp] app: release tile with dirty flag in gegl tile backend



commit a058daeba1369405c549ae66f1c2da3bcf5e520c
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Wed Mar 14 20:15:01 2012 +0000

    app: release tile with dirty flag in gegl tile backend
    
    We always modify tiles so behave correctly.

 app/gegl/gimptilebackendtilemanager.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/gegl/gimptilebackendtilemanager.c b/app/gegl/gimptilebackendtilemanager.c
index fec82b1..ac4c85a 100644
--- a/app/gegl/gimptilebackendtilemanager.c
+++ b/app/gegl/gimptilebackendtilemanager.c
@@ -216,9 +216,11 @@ gimp_tile_write (GimpTileBackendTileManager *backend_tm,
   if (!gimp_tile)
     return;
 
+  /* if the memory pointer already points to the data, there is
+   * no point in copying it
+   */
   if (source != tile_data_pointer (gimp_tile, 0, 0))
     {
-      /* only copy when we are not 0 copy */
       tile_stride      = TILE_WIDTH * tile_bpp (gimp_tile);
       gimp_tile_stride = tile_ewidth (gimp_tile) * tile_bpp (gimp_tile);
 
@@ -230,7 +232,7 @@ gimp_tile_write (GimpTileBackendTileManager *backend_tm,
         }
     }
 
-  tile_release (gimp_tile, FALSE);
+  tile_release (gimp_tile, TRUE);
 }
 
 GeglTileBackend *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]