_run should pass on the return value. Fixes bug #334874.

2006-03-17  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpplugin.py: _run should pass on the return
        value. Fixes bug #334874.
This commit is contained in:
Manish Singh 2006-03-17 14:44:03 +00:00 committed by Manish Singh
parent cc2923ad0b
commit 3aede25d6f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-17 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpplugin.py: _run should pass on the return
value. Fixes bug #334874.
2006-03-17 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb.pl: generically map NULL to -1 when returning

View File

@ -56,7 +56,7 @@ class plugin:
def _run(self, name, params):
if hasattr(self, name):
apply(getattr(self, name), params)
return apply(getattr(self, name), params)
else:
raise AttributeError, name