summaryrefslogtreecommitdiffstats
path: root/share/extensions/restack.py
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-03-21 11:52:05 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-03-21 11:52:05 +0000
commit35dbee2c542660e1ab2c2aa3ed8f0bc052ebd0a1 (patch)
tree1339b657212153803c8b575b3862a4864928da71 /share/extensions/restack.py
parentupdate to trunk (diff)
parentImprove the cache system of bspline, "Correctly" show bspline weight power on... (diff)
downloadinkscape-35dbee2c542660e1ab2c2aa3ed8f0bc052ebd0a1.tar.gz
inkscape-35dbee2c542660e1ab2c2aa3ed8f0bc052ebd0a1.zip
update to trunk
(bzr r13645.1.48)
Diffstat (limited to 'share/extensions/restack.py')
-rwxr-xr-xshare/extensions/restack.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/extensions/restack.py b/share/extensions/restack.py
index 615b41527..507353025 100755
--- a/share/extensions/restack.py
+++ b/share/extensions/restack.py
@@ -54,9 +54,9 @@ class Restack(inkex.Effect):
svg = self.document.getroot()
parentnode = self.current_layer
file = self.args[ -1 ]
-
+
#get all bounding boxes in file by calling inkscape again with the --query-all command line option
- #it returns a comma seperated list structured id,x,y,w,h
+ #it returns a comma separated list structured id,x,y,w,h
if bsubprocess:
p = Popen('inkscape --query-all "%s"' % (file), shell=True, stdout=PIPE, stderr=PIPE)
err = p.stderr
@@ -65,12 +65,12 @@ class Restack(inkex.Effect):
reader=csv.CSVParser().parse_string(f) #there was a module cvs.py in earlier inkscape that behaved differently
except:
reader=csv.reader(f.split( os.linesep ))
- err.close()
+ err.close()
else:
_,f,err = os.popen3('inkscape --query-all "%s"' % ( file ) )
reader=csv.reader( f )
err.close()
-
+
#build a dictionary with id as the key
dimen = dict()
for line in reader: