don't call gimp_edit_paste() with a NULL buffer. Instead, return an

2004-02-05  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/edit.pdb (edit_paste): don't call
	gimp_edit_paste() with a NULL buffer. Instead, return an execution
	error if there is no global buffer to paste. Fixes the warning
	triggered by bug #133244 (but not the bug itself of course).

	* app/pdb/edit_cmds.c: regenerated.
This commit is contained in:
Michael Natterer 2004-02-05 19:34:18 +00:00 committed by Michael Natterer
parent 42a11f42f8
commit 4ff88df45f
3 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2004-02-05 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/edit.pdb (edit_paste): don't call
gimp_edit_paste() with a NULL buffer. Instead, return an execution
error if there is no global buffer to paste. Fixes the warning
triggered by bug #133244 (but not the bug itself of course).
* app/pdb/edit_cmds.c: regenerated.
2004-02-05 Sven Neumann <sven@gimp.org>
* plug-ins/imagemap/imap_main.c (dialog): quit the main loop when

View file

@ -171,7 +171,8 @@ edit_paste_invoker (Gimp *gimp,
if (success)
{
success = gimp_item_is_attached (GIMP_ITEM (drawable));
success = (gimp_item_is_attached (GIMP_ITEM (drawable)) &&
gimp->global_buffer != NULL);
if (success)
{

View file

@ -121,7 +121,8 @@ HELP
headers => [ qw("core/gimp.h") ],
code => <<CODE
{
success = gimp_item_is_attached (GIMP_ITEM (drawable));
success = (gimp_item_is_attached (GIMP_ITEM (drawable)) &&
gimp->global_buffer != NULL);
if (success)
{