From 8debec9945050f5a4c4836e21bca11427489f1d9 Mon Sep 17 00:00:00 2001 From: acspike Date: Sun, 28 May 2006 03:50:26 +0000 Subject: [PATCH] center the tree on the current layer --- share/extensions/rtree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.30.2