diff options
| author | su_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 |
| commit | 0e8f6be700cbf303e8016fa9301c4b8d43fbea6c (patch) | |
| tree | 4ece72350cf3d8063021dc6881cae6853b1223a3 | |
| parent | Fix a bug continuing a bezier path whith a LPE one like spiro or bspline (diff) | |
| download | inkscape-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-x | share/extensions/inkex.py | 2 |
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]+)?)') |
