summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2015-07-11 10:29:54 +0000
committer~suv <suv-sf@users.sourceforge.net>2015-07-11 10:29:54 +0000
commit0e8f6be700cbf303e8016fa9301c4b8d43fbea6c (patch)
tree4ece72350cf3d8063021dc6881cae6853b1223a3
parentFix a bug continuing a bezier path whith a LPE one like spiro or bspline (diff)
downloadinkscape-0e8f6be700cbf303e8016fa9301c4b8d43fbea6c.tar.gz
inkscape-0e8f6be700cbf303e8016fa9301c4b8d43fbea6c.zip
Extensions. Fix for Bug #1463623 (Error trying to save Optimized SVG (no 'width' attribute for SVGRoot))
(bzr r14240)
-rwxr-xr-xshare/extensions/inkex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py
index 19e860b9a..2517c7e04 100755
--- a/share/extensions/inkex.py
+++ b/share/extensions/inkex.py
@@ -297,7 +297,7 @@ class Effect:
svgwidth = self.document.getroot().get('width')
viewboxstr = self.document.getroot().get('viewBox')
- if viewboxstr:
+ if viewboxstr and svgwidth is not None:
unitmatch = re.compile('(%s)$' % '|'.join(self.__uuconv.keys()))
param = re.compile(r'(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)')