Commit 573b3096 authored by David Odin's avatar David Odin

length should at least be 1, or the zoom mode will produce garbage.

* plug-ins/common/mblur.c: length should at least be 1, or the zoom
  mode will produce garbage. length==0 is useless in other modes.
  (reported by daelstorm on freenode/#gimp)
parent bab76e32
2006-02-06 DindinX <dindinx@gimp.org>
* plug-ins/common/mblur.c: length should at least be 1, or the zoom
mode will produce garbage. length==0 is useless in other modes.
(reported by daelstorm on freenode/#gimp)
2006-02-03 Jay Cox <jaycox@gimp.org>
* plug-ins/common/ripple.c: Fixed antialiasing. Replaced "black"
......
......@@ -236,7 +236,7 @@ run (const gchar *name,
if (nparams == 9)
{
mbvals.blur_outward = param[6].data.d_int32;
--nparams;
--nparams;
}
if (nparams == 8)
......@@ -705,16 +705,16 @@ mblur_zoom (GimpDrawable *drawable,
for (i = 0; i < n; ++i)
{
if (mbvals.blur_outward)
{
xx = center_x + (x - center_x) * (1.0 - f * i);
yy = center_y + (y - center_y) * (1.0 - f * i);
}
else
{
xx = center_x + (x - center_x) * (1.0 + f * i);
yy = center_y + (y - center_y) * (1.0 + f * i);
}
if (mbvals.blur_outward)
{
xx = center_x + (x - center_x) * (1.0 - f * i);
yy = center_y + (y - center_y) * (1.0 - f * i);
}
else
{
xx = center_x + (x - center_x) * (1.0 + f * i);
yy = center_y + (y - center_y) * (1.0 + f * i);
}
if ((yy < drawable_y1) || (yy >= drawable_y2) ||
(xx < drawable_x1) || (xx >= drawable_x2))
......@@ -1021,7 +1021,7 @@ mblur_dialog (gint32 image_ID,
length = gimp_scale_entry_new (GTK_TABLE (table), 0, 0,
_("L_ength:"), 150, 3,
mbvals.length, 0.0, 256.0, 1.0, 8.0, 0,
mbvals.length, 1.0, 256.0, 1.0, 8.0, 0,
TRUE, 0, 0,
NULL, NULL);
......
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