enable "compose_by_drawable" for GIMP_RUN_WITH_LAST_VALS, since these

2006-07-31  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/compose.c (run): enable "compose_by_drawable"
	for GIMP_RUN_WITH_LAST_VALS, since these values are drawable IDs,
	not image IDs. Fixes bug #346859.
This commit is contained in:
Michael Natterer 2006-07-30 22:40:10 +00:00 committed by Michael Natterer
parent 3739ee1883
commit 845cec013a
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-07-31 Michael Natterer <mitch@gimp.org>
* plug-ins/common/compose.c (run): enable "compose_by_drawable"
for GIMP_RUN_WITH_LAST_VALS, since these values are drawable IDs,
not image IDs. Fixes bug #346859.
2006-07-30 Raphaël Quinet <raphael@gimp.org>
* app/tools/gimppainttool.c

View File

@ -504,6 +504,8 @@ run (const gchar *name,
/* Possibly retrieve data */
gimp_get_data (name, &composevals);
compose_by_drawable = TRUE;
/* The dialog is now drawable based. Get a drawable-ID of the image */
if (strcmp (name, COMPOSE_PROC) == 0)
{
@ -526,8 +528,6 @@ run (const gchar *name,
drawable_ID = param[2].data.d_int32;
}
compose_by_drawable = TRUE;
/* First acquire information with a dialog */
if (! compose_dialog (composevals.compose_type, drawable_ID))
return;
@ -576,6 +576,8 @@ run (const gchar *name,
case GIMP_RUN_WITH_LAST_VALS:
/* Possibly retrieve data */
gimp_get_data (name, &composevals);
compose_by_drawable = TRUE;
break;
default: