Commit 41ed6b28 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

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.
parent 04e11683
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;
......
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