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:
committed by
Sven Neumann
parent
bef9ba2945
commit
77402aae6b
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user