fixed clipping (bug #392692).

2007-01-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.c: fixed clipping (bug 
#392692).


svn path=/trunk/; revision=21642
This commit is contained in:
Sven Neumann 2007-01-04 12:14:24 +00:00 committed by Sven Neumann
parent d69f8afda6
commit e640ce4443
2 changed files with 27 additions and 23 deletions

View File

@ -1,3 +1,7 @@
2007-01-04 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimppreviewarea.c: fixed clipping (bug #392692).
2007-01-04 Tor Lillqvist <tml@novell.com>
* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): Add

View File

@ -359,10 +359,10 @@ gimp_preview_area_draw (GimpPreviewArea *area,
if (x < 0)
{
gint bpp = gimp_preview_area_image_type_bytes (type);
gint bpp = gimp_preview_area_image_type_bytes (type);
buf -= x * bpp;
width -= x;
buf -= x * bpp;
width += x;
x = 0;
}
@ -372,8 +372,8 @@ gimp_preview_area_draw (GimpPreviewArea *area,
if (y < 0)
{
buf -= y * rowstride;
height -= y;
buf -= y * rowstride;
height += y;
y = 0;
}
@ -635,11 +635,11 @@ gimp_preview_area_blend (GimpPreviewArea *area,
if (x < 0)
{
gint bpp = gimp_preview_area_image_type_bytes (type);
gint bpp = gimp_preview_area_image_type_bytes (type);
buf1 -= x * bpp;
buf2 -= x * bpp;
width -= x;
buf1 -= x * bpp;
buf2 -= x * bpp;
width += x;
x = 0;
}
@ -649,9 +649,9 @@ gimp_preview_area_blend (GimpPreviewArea *area,
if (y < 0)
{
buf1 -= y * rowstride1;
buf2 -= y * rowstride2;
height -= y;
buf1 -= y * rowstride1;
buf2 -= y * rowstride2;
height += y;
y = 0;
}
@ -1002,12 +1002,12 @@ gimp_preview_area_mask (GimpPreviewArea *area,
if (x < 0)
{
gint bpp = gimp_preview_area_image_type_bytes (type);
gint bpp = gimp_preview_area_image_type_bytes (type);
buf1 -= x * bpp;
buf2 -= x * bpp;
mask -= x;
width -= x;
buf1 -= x * bpp;
buf2 -= x * bpp;
mask -= x;
width += x;
x = 0;
}
@ -1017,10 +1017,10 @@ gimp_preview_area_mask (GimpPreviewArea *area,
if (y < 0)
{
buf1 -= y * rowstride1;
buf2 -= y * rowstride2;
mask -= y * rowstride_mask;
height -= y;
buf1 -= y * rowstride1;
buf2 -= y * rowstride2;
mask -= y * rowstride_mask;
height += y;
y = 0;
}
@ -1536,7 +1536,7 @@ gimp_preview_area_fill (GimpPreviewArea *area,
if (x < 0)
{
width -= x;
width += x;
x = 0;
}
@ -1545,7 +1545,7 @@ gimp_preview_area_fill (GimpPreviewArea *area,
if (y < 0)
{
height -= y;
height += y;
y = 0;
}