mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 22:34:37 +00:00
Fixed a really dumb bug in tile management in paint_core. --sg
This commit is contained in:
parent
da9a38ce62
commit
df2b147050
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue