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:
Manish Singh
2005-08-13 23:55:52 +00:00
committed by Manish Singh
parent 04e116837d
commit 41ed6b280f
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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;