summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2015-06-25 14:03:32 +0000
committer~suv <suv-sf@users.sourceforge.net>2015-06-25 14:03:32 +0000
commitdfbca58488048a3dbce51ab83d05987a4fa86ce9 (patch)
tree55a1df465f4199dd5d4335d4d16847b6e673309d /share
parentSet sensitivty of font-variant buttons according to available OpenType tables. (diff)
downloadinkscape-dfbca58488048a3dbce51ab83d05987a4fa86ce9.tar.gz
inkscape-dfbca58488048a3dbce51ab83d05987a4fa86ce9.zip
Extensions. webslicer_export.py - return message if no slicer layer found (bug #1198826)
(bzr r14216)
Diffstat (limited to 'share')
-rwxr-xr-xshare/extensions/webslicer_export.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/extensions/webslicer_export.py b/share/extensions/webslicer_export.py
index c9ea761a7..a8a3c67ba 100755
--- a/share/extensions/webslicer_export.py
+++ b/share/extensions/webslicer_export.py
@@ -72,7 +72,13 @@ class WebSlicer_Export(WebSlicer_Effect):
else:
inkex.errormsg(_('The directory "%s" does not exists.') % self.options.dir)
return
- self.unique_html_id( self.get_slicer_layer() )
+ # Check whether slicer layer exists (bug #1198826)
+ slicer_layer = self.get_slicer_layer()
+ if slicer_layer is None:
+ inkex.errormsg(_('No slicer layer found.'))
+ return {'error':'No slicer layer found.'}
+ else:
+ self.unique_html_id( slicer_layer )
return None