don't check name for NULL and fail

-Yosh
This commit is contained in:
Manish Singh 1999-08-28 17:55:47 +00:00
parent 3e2ef66809
commit 287fd04b10
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Sat Aug 28 10:53:17 PDT 1999 Manish Singh <yosh@gimp.org>
* tools/pdbgen/pdb/layer.pdb
* app/layer_cmds.c: don't check name for NULL and fail
1999-08-28 Tor Lillqvist <tml@iki.fi>
* libgimp/gimp.c (gimp_main): Put in a workaround for the problem

View File

@ -126,8 +126,6 @@ layer_new_invoker (Argument *args)
success = FALSE;
name = (gchar *) args[4].value.pdb_pointer;
if (name == NULL)
success = FALSE;
opacity_arg = args[5].value.pdb_float;
if (opacity_arg < 0.0 || opacity_arg > 100.0)

View File

@ -220,7 +220,7 @@ HELP
{ name => 'type', type => 'enum GimpImageType',
desc => 'The layer type: { %%desc%% }' },
{ name => 'name', type => 'string',
desc => 'The layer name' },
desc => 'The layer name', no_success => 1 },
{ name => 'opacity', type => '0 <= float <= 100',
desc => 'The layer opacity: (%%desc%%)', alias => 'opacity_arg' },
{ name => 'mode', type => 'enum LayerModeEffects',