summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2010-01-20 10:24:01 +0000
committerJazzyNico <nicoduf@yahoo.fr>2010-01-20 10:24:01 +0000
commitb70cb8f4e685a2f897a2ebf66828818b8556fca2 (patch)
tree2b1ff9616c2b9970e888d061bbf464dd3703b9c0
parentWhen snapping to a bounding box, flash that bounding box together with the sn... (diff)
downloadinkscape-b70cb8f4e685a2f897a2ebf66828818b8556fca2.tar.gz
inkscape-b70cb8f4e685a2f897a2ebf66828818b8556fca2.zip
Small fix in scour (optimized SVG) output extension.
(bzr r9000)
-rwxr-xr-xshare/extensions/scour.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/extensions/scour.py b/share/extensions/scour.py
index 700a0349f..b2b2c178e 100755
--- a/share/extensions/scour.py
+++ b/share/extensions/scour.py
@@ -2278,7 +2278,7 @@ def scourString(in_string, options=None):
embedRasters(elem, options)
# properly size the SVG document (ideally width/height should be 100% with a viewBox)
- if options.viewboxing:
+ if options.enable_viewboxing:
properlySizeDoc(doc.documentElement)
# output the document as a pretty string with a single space for indent
@@ -2354,7 +2354,7 @@ _options_parser.add_option("--strip-xml-prolog",
action="store_true", dest="strip_xml_prolog", default=False,
help="won't output the <?xml ?> prolog")
_options_parser.add_option("--enable-viewboxing",
- action="store_true", dest="viewboxing", default=False,
+ action="store_true", dest="enable_viewboxing", default=False,
help="changes document width/height to 100%/100% and creates viewbox coordinates")
# GZ: this is confusing, most people will be thinking in terms of