mirror of https://github.com/GNOME/gimp.git
corrected an off-by-one error, sorry :)
* base/pixel-region.c: corrected an off-by-one error, sorry :)
This commit is contained in:
parent
56f849d9fc
commit
4ab85c4048
|
@ -1,3 +1,7 @@
|
|||
2001-11-28 Kelly Martin <kmartin@pyrzqxgl.org>
|
||||
|
||||
* base/pixel-region.c: corrected an off-by-one error, sorry :)
|
||||
|
||||
2001-11-28 Kelly Martin <kmartin@pyrzqxgl.org>
|
||||
|
||||
* app/undo.c: Fixed another use of array of gpointer in place of a
|
||||
|
|
|
@ -128,7 +128,7 @@ pixel_region_get_row (PixelRegion *PR,
|
|||
|
||||
if (subsample == 1)
|
||||
{
|
||||
read_pixel_data (PR->tiles, x, y, end, y, data, w);
|
||||
read_pixel_data (PR->tiles, x, y, end-1, y, data, w);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -163,11 +163,11 @@ pixel_region_set_row (PixelRegion *PR,
|
|||
{
|
||||
gint end;
|
||||
|
||||
end = x + w;
|
||||
end = x + w ;
|
||||
|
||||
pixel_region_get_async (PR, x, y, end, y);
|
||||
|
||||
write_pixel_data (PR->tiles, x, y, end, y, data, w);
|
||||
write_pixel_data (PR->tiles, x, y, end-1, y, data, w);
|
||||
}
|
||||
|
||||
|
||||
|
@ -233,7 +233,7 @@ pixel_region_set_col (PixelRegion *PR,
|
|||
|
||||
tilebpp = tile_manager_bpp (PR->tiles);
|
||||
|
||||
write_pixel_data (PR->tiles, x, y, x, end, data, tilebpp);
|
||||
write_pixel_data (PR->tiles, x, y, x, end-1, data, tilebpp);
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
|
Loading…
Reference in New Issue