mirror of https://github.com/GNOME/gimp.git
plug-ins/common/tileit.c plug-ins/common/warp.c fixed the same problem as
2008-02-22 Sven Neumann <sven@gimp.org> * plug-ins/common/tileit.c * plug-ins/common/warp.c * plug-ins/common/struc.c: fixed the same problem as in the Wind plug-in here as well (see bug #516369). svn path=/trunk/; revision=24944
This commit is contained in:
parent
cadf7e292f
commit
1463ee4de2
|
@ -1,3 +1,10 @@
|
|||
2008-02-22 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/tileit.c
|
||||
* plug-ins/common/warp.c
|
||||
* plug-ins/common/struc.c: fixed the same problem as in the Wind
|
||||
plug-in here as well (see bug #516369).
|
||||
|
||||
2008-02-22 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/print/print-draw-page.c (draw_page_cairo): when
|
||||
|
|
|
@ -1374,15 +1374,13 @@ strucpi (GimpDrawable *drawable,
|
|||
* faster, since fewer pixels need to be operated on).
|
||||
*/
|
||||
if (! gimp_drawable_mask_intersect (drawable->drawable_id,
|
||||
&x1, &y1, &x2, &y2))
|
||||
&x1, &y1, &width, &height))
|
||||
return;
|
||||
|
||||
/* Get the size of the input image. (This will/must be the same
|
||||
* as the size of the output image.
|
||||
*/
|
||||
width = x2 - x1;
|
||||
height = y2 - y1;
|
||||
x2 = x1 + width;
|
||||
y2 = y1 + height;
|
||||
}
|
||||
|
||||
bytes = drawable->bpp;
|
||||
|
||||
/* allocate row buffers */
|
||||
|
|
|
@ -257,14 +257,15 @@ run (const gchar *name,
|
|||
has_alpha = gimp_drawable_has_alpha (tileitdrawable->drawable_id);
|
||||
|
||||
if (! gimp_drawable_mask_intersect (drawable->drawable_id,
|
||||
&sel_x1, &sel_y1, &sel_x2, &sel_y2))
|
||||
&sel_x1, &sel_y1,
|
||||
&sel_width, &sel_height))
|
||||
{
|
||||
g_message (_("Region selected for filter is empty."));
|
||||
return;
|
||||
}
|
||||
|
||||
sel_width = sel_x2 - sel_x1;
|
||||
sel_height = sel_y2 - sel_y1;
|
||||
sel_x2 = sel_x1 + sel_width;
|
||||
sel_y2 = sel_y1 + sel_height;
|
||||
|
||||
/* Calculate preview size */
|
||||
|
||||
|
|
|
@ -738,9 +738,12 @@ blur16 (GimpDrawable *drawable)
|
|||
/* --------------------------------------- */
|
||||
|
||||
if (! gimp_drawable_mask_intersect (drawable->drawable_id,
|
||||
&x1, &y1, &x2, &y2))
|
||||
&x1, &y1, &width, &height))
|
||||
return;
|
||||
|
||||
x2 = x1 + width;
|
||||
y2 = y1 + height;
|
||||
|
||||
width = drawable->width; /* size of input drawable*/
|
||||
height = drawable->height;
|
||||
src_bytes = drawable->bpp; /* bytes per pixel in SOURCE drawable, must be 2 or more */
|
||||
|
@ -910,9 +913,12 @@ diff (GimpDrawable *drawable,
|
|||
* faster, since fewer pixels need to be operated on).
|
||||
*/
|
||||
if (! gimp_drawable_mask_intersect (drawable->drawable_id,
|
||||
&x1, &y1, &x2, &y2))
|
||||
&x1, &y1, &width, &height))
|
||||
return;
|
||||
|
||||
x2 = x1 + width;
|
||||
y2 = y1 + height;
|
||||
|
||||
/* Get the size of the input image. (This will/must be the same
|
||||
* as the size of the output image.
|
||||
*/
|
||||
|
@ -1226,9 +1232,12 @@ warp (GimpDrawable *orig_draw)
|
|||
|
||||
/* Get selection area */
|
||||
if (! gimp_drawable_mask_intersect (orig_draw->drawable_id,
|
||||
&x1, &y1, &x2, &y2))
|
||||
&x1, &y1, &width, &height))
|
||||
return;
|
||||
|
||||
x2 = x1 + width;
|
||||
y2 = y1 + height;
|
||||
|
||||
width = orig_draw->width;
|
||||
height = orig_draw->height;
|
||||
bytes = orig_draw->bpp;
|
||||
|
|
Loading…
Reference in New Issue