From: acspike Date: Sun, 28 May 2006 03:50:26 +0000 (+0000) Subject: center the tree on the current layer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8debec9945050f5a4c4836e21bca11427489f1d9;p=inkscape.git center the tree on the current layer --- diff --git a/share/extensions/rtree.py b/share/extensions/rtree.py index a70b2b4c0..5d8ac9f3d 100755 --- a/share/extensions/rtree.py +++ b/share/extensions/rtree.py @@ -51,9 +51,12 @@ class RTreeTurtle(inkex.Effect): 'fill': 'none'} new.setAttribute('style', simplestyle.formatStyle(s)) t = pturtle.pTurtle() + t.pu() + t.setpos(self.view_center) + t.pd() rtree(t, self.options.size, self.options.minimum) new.setAttribute('d', t.getPath()) - self.document.documentElement.appendChild(new) + self.current_layer.appendChild(new) e = RTreeTurtle() e.affect()