summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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]+)?)')