check that the passed vectors item is attached.

2008-07-28  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/edit.pdb (edit_stroke_vectors_invoker): check
	that the passed vectors item is attached.

	* app/pdb/edit-cmds.c: regenerated.


svn path=/trunk/; revision=26329
This commit is contained in:
Sven Neumann
2008-07-28 14:17:49 +00:00
committed by Sven Neumann
parent bef9ba2945
commit 77402aae6b
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-07-28 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/edit.pdb (edit_stroke_vectors_invoker): check
that the passed vectors item is attached.
* app/pdb/edit-cmds.c: regenerated.
2008-07-28 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/vectors.pdb: applied patch from LightningIsMyName

View File

@ -766,7 +766,8 @@ edit_stroke_vectors_invoker (GimpProcedure *procedure,
if (success)
{
if (gimp_pdb_item_is_attached (GIMP_ITEM (drawable), error))
if (gimp_pdb_item_is_attached (GIMP_ITEM (drawable), error) &&
gimp_pdb_item_is_attached (GIMP_ITEM (vectors), error))
{
GimpStrokeDesc *desc = gimp_stroke_desc_new (gimp, context);

View File

@ -871,7 +871,8 @@ HELP
headers => [ qw("core/gimpstrokedesc.h") ],
code => <<'CODE'
{
if (gimp_pdb_item_is_attached (GIMP_ITEM (drawable), error))
if (gimp_pdb_item_is_attached (GIMP_ITEM (drawable), error) &&
gimp_pdb_item_is_attached (GIMP_ITEM (vectors), error))
{
GimpStrokeDesc *desc = gimp_stroke_desc_new (gimp, context);