Commit c9eb6985 authored by scott's avatar scott
Browse files

Fixed a bug with the xcf loader being a little too overzealous in

sharing tiles. --sg
parent c30442d2
......@@ -2,6 +2,11 @@ Mon Jul 27 12:27:47 PDT 1998 Manish Singh <yosh@gimp.org>
* plug-ins/fp/fp.c: make PDB entry for filter pack saner
Mon Jul 27 14:29:39 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* app/xcf.c (xcf_load_level): Made xcf loader a little less
zealous in trying to copy-on-write duplicated tiles.
Sun Jul 26 23:47:33 MEST 1998 Sven Neumann <sven@gimp.org>
* app/blend.c
......
......@@ -1944,7 +1944,9 @@ xcf_load_level (XcfInfo *info,
if (previous != NULL)
{
tile_lock (previous);
if (tile_size (tile) == tile_size (previous) &&
if (tile->ewidth == previous->ewidth &&
tile->eheight == previous->eheight &&
tile->bpp == previous->bpp &&
memcmp (tile->data, previous->data,
tile_size (tile)) == 0)
{
......
......@@ -1944,7 +1944,9 @@ xcf_load_level (XcfInfo *info,
if (previous != NULL)
{
tile_lock (previous);
if (tile_size (tile) == tile_size (previous) &&
if (tile->ewidth == previous->ewidth &&
tile->eheight == previous->eheight &&
tile->bpp == previous->bpp &&
memcmp (tile->data, previous->data,
tile_size (tile)) == 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment