Fixed a really dumb bug in tile management in paint_core. --sg

This commit is contained in:
scott 1998-07-11 14:00:55 +00:00
parent da9a38ce62
commit df2b147050
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sat Jul 11 08:58:49 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* app/paint_core.c (paint_core_get_orig_image): Fixed a really
dumb bug. (This may solve some of the undo-related crashes.)
1998-07-11 Seth Burgess <sjburges@gimp.org>
* app/main.c:

View file

@ -655,12 +655,12 @@ paint_core_get_orig_image (paint_core, drawable, x1, y1, x2, y2)
{
refd = 1;
undo_tile = tile_manager_get_tile (undo_tiles, srcPR.x, srcPR.y, 0, TRUE, FALSE);
tile_lock (undo_tile->valid);
s = undo_tile->data + srcPR.rowstride * (srcPR.y % TILE_HEIGHT) +
srcPR.bytes * (srcPR.x % TILE_WIDTH);
}
else
{
refd = 0;
s = srcPR.data;
}

View file

@ -655,12 +655,12 @@ paint_core_get_orig_image (paint_core, drawable, x1, y1, x2, y2)
{
refd = 1;
undo_tile = tile_manager_get_tile (undo_tiles, srcPR.x, srcPR.y, 0, TRUE, FALSE);
tile_lock (undo_tile->valid);
s = undo_tile->data + srcPR.rowstride * (srcPR.y % TILE_HEIGHT) +
srcPR.bytes * (srcPR.x % TILE_WIDTH);
}
else
{
refd = 0;
s = srcPR.data;
}