if the offsets of the layer are such that they are just on the border of
2005-08-13 Manish Singh <yosh@gimp.org> * app/core/gimpimage-preview.c (gimp_image_get_new_preview): if the offsets of the layer are such that they are just on the border of the image, detect that and bail instead of trying to make a sub-preview with a 0 dimension.
This commit is contained in:

committed by
Manish Singh

parent
04e116837d
commit
41ed6b280f
@ -1,3 +1,10 @@
|
||||
2005-08-13 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* app/core/gimpimage-preview.c (gimp_image_get_new_preview): if the
|
||||
offsets of the layer are such that they are just on the border of
|
||||
the image, detect that and bail instead of trying to make a
|
||||
sub-preview with a 0 dimension.
|
||||
|
||||
2005-08-14 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* plug-ins/common/gauss.c
|
||||
|
@ -261,6 +261,9 @@ gimp_image_get_new_preview (GimpViewable *viewable,
|
||||
x2 = CLAMP (x + w, 0, width);
|
||||
y2 = CLAMP (y + h, 0, height);
|
||||
|
||||
if (x2 == x1 || y2 == y1)
|
||||
continue;
|
||||
|
||||
src1PR.bytes = comp->bytes;
|
||||
src1PR.x = x1;
|
||||
src1PR.y = y1;
|
||||
|
Reference in New Issue
Block a user