Commit df2b1470 authored by scott's avatar scott
Browse files

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

parent da9a38ce
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:
......
......@@ -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;
}
......
......@@ -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;
}
......
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