akkana / gimp-plugins

GIMP plug-ins, scripts and helpers
GNU General Public License v2.0
163 stars 43 forks source link

export-scaled.py fails if not saved yet #2

Closed unhammer closed 12 years ago

unhammer commented 12 years ago

open a new image, don't save, just click file→export scaled

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 807, in _run
    res = apply(func, params[1:])
  File "/home/username/gimp-2.8/plug-ins/export-scaled.py", line 106, in python_export_scaled
     chooser.set_current_name(os.path.basename(init_filename))
  File "/usr/lib/python2.7/posixpath.py", line 112, in basename
    i = p.rfind('/') + 1
 AttributeError: 'NoneType' object has no attribute 'rfind'
akkana commented 12 years ago

Thanks for the report! Just checked in a fix.