applied a patch from Henrik Brix Andersen that tells the user that Curve

2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: applied a patch from Henrik Brix
	Andersen that tells the user that Curve Bend cannot operate on
	layers with masks instead of silently applying the mask
	(bug #134748).
This commit is contained in:
Sven Neumann 2004-06-05 19:22:46 +00:00 committed by Sven Neumann
parent d1d565ba83
commit 9a0d74f1cf
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2004-06-05 Sven Neumann <sven@gimp.org>
* plug-ins/common/curve_bend.c: applied a patch from Henrik Brix
Andersen that tells the user that Curve Bend cannot operate on
layers with masks instead of silently applying the mask
(bug #134748).
2004-06-05 Sven Neumann <sven@gimp.org>
* plug-ins/common/plugin-defs.pl

View File

@ -721,7 +721,15 @@ run (const gchar *name,
* some transitions (especially rotate) cant operate proper on
* layers with masks !
*/
gimp_layer_remove_mask (l_layer_id, 0 /* 0==APPLY */ );
if (run_mode == GIMP_RUN_NONINTERACTIVE)
{
gimp_layer_remove_mask (l_layer_id, 0 /* 0==APPLY */ );
}
else
{
g_message (_("Cannot operate on layers with masks."));
status = GIMP_PDB_EXECUTION_ERROR;
}
}
/* if there is a selection, make it the floating selection layer */