Commit 30e9bf10 authored by Marc Lehmann's avatar Marc Lehmann
Browse files

*** empty log message ***

parent 5ac87e53
Tue Oct 3 18:05:53 CEST 2000 Marc Lehmann <pcg@goof.com>
* plug-ins/common/exchange.c: Try to fix bug #26614.
2000-10-02 Simon Budig <simon@gimp.org> 2000-10-02 Simon Budig <simon@gimp.org>
   
* docs/Wilber.svg: New file: Our favourite pet in a svg-version :-) * docs/Wilber.svg: New file: Our favourite pet in a svg-version :-)
......
...@@ -152,6 +152,20 @@ run (gchar *name, ...@@ -152,6 +152,20 @@ run (gchar *name,
xargs.drawable = param[2].data.d_drawable; xargs.drawable = param[2].data.d_drawable;
drw = gimp_drawable_get (xargs.drawable); drw = gimp_drawable_get (xargs.drawable);
/* initialize misc. things */
gimp_drawable_mask_bounds (drw->id, &sel_x1, &sel_y1, &sel_x2, &sel_y2);
sel_width = sel_x2 - sel_x1;
sel_height = sel_y2 - sel_y1;
if (sel_width > PREVIEW_SIZE)
prev_width = PREVIEW_SIZE;
else
prev_width = sel_width;
if (sel_height > PREVIEW_SIZE)
prev_height = PREVIEW_SIZE;
else
prev_height = sel_height;
has_alpha = gimp_drawable_has_alpha (drw->id);
switch (runmode) switch (runmode)
{ {
case GIMP_RUN_INTERACTIVE: case GIMP_RUN_INTERACTIVE:
...@@ -162,19 +176,6 @@ run (gchar *name, ...@@ -162,19 +176,6 @@ run (gchar *name,
gimp_palette_get_foreground (&xargs.fromred, gimp_palette_get_foreground (&xargs.fromred,
&xargs.fromgreen, &xargs.fromgreen,
&xargs.fromblue); &xargs.fromblue);
/* and initialize some other things */
gimp_drawable_mask_bounds (drw->id, &sel_x1, &sel_y1, &sel_x2, &sel_y2);
sel_width = sel_x2 - sel_x1;
sel_height = sel_y2 - sel_y1;
if (sel_width > PREVIEW_SIZE)
prev_width = PREVIEW_SIZE;
else
prev_width = sel_width;
if (sel_height > PREVIEW_SIZE)
prev_height = PREVIEW_SIZE;
else
prev_height = sel_height;
has_alpha = gimp_drawable_has_alpha (drw->id);
if (!doDialog ()) if (!doDialog ())
return; return;
break; break;
...@@ -194,7 +195,7 @@ run (gchar *name, ...@@ -194,7 +195,7 @@ run (gchar *name,
case GIMP_RUN_NONINTERACTIVE: case GIMP_RUN_NONINTERACTIVE:
INIT_I18N(); INIT_I18N();
if (nparams != 10) if (nparams != 12)
{ {
status = GIMP_PDB_EXECUTION_ERROR; status = GIMP_PDB_EXECUTION_ERROR;
} }
......
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