Code

add to current layer, not root
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 29 May 2006 01:39:13 +0000 (01:39 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 29 May 2006 01:39:13 +0000 (01:39 +0000)
share/extensions/eqtexsvg.py
share/extensions/interp.py

index 4232268af500835b14a143528ddc82511d10877e..4a0589fb1311e5b966a090d5b147d2eaf0708223 100644 (file)
@@ -55,7 +55,7 @@ def svg_open(self,filename):
     svg_lines.pop(len(svg_lines)-1)
 
     group = self.document.createElement('svg:g')
-    self.document.documentElement.appendChild(group)
+    self.current_layer.appendChild(group)
 
     # deleting "<g... >" "</g>" "<path d=" and "/>" from svg_lines
     nodegroup=''
index 7e5407e6a05d52c82f2fd72b0fee588248a1d107..ba8d8d7f40f6ec8b2e1494c5f4cc871b2704bc09 100755 (executable)
@@ -290,7 +290,7 @@ class Interp(inkex.Effect):
                 steps = [0] + steps + [1]    
             #create an interpolated path for each interval
             group = self.document.createElement('svg:g')    
-            self.document.documentElement.appendChild(group)
+            self.current_layer.appendChild(group)
             for time in steps:
                 interp = []
                 #process subpaths