Code

put fretboards into the current layer
authoracspike <acspike@users.sourceforge.net>
Sun, 28 May 2006 04:07:13 +0000 (04:07 +0000)
committeracspike <acspike@users.sourceforge.net>
Sun, 28 May 2006 04:07:13 +0000 (04:07 +0000)
share/extensions/fretfind.py

index a2ce6c961a620d1db088ea3ae493c1edcf5ebbb5..14da7819d643c513572d03285f6b4a46759df16f 100755 (executable)
@@ -152,7 +152,7 @@ class FretFind(inkex.Effect):
     
         group = self.document.createElement('svg:g')
         group.setAttribute('transform',"scale(%s,%s)" % (self.options.pxperunit,self.options.pxperunit))
-        self.document.documentElement.appendChild(group)
+        self.current_layer.appendChild(group)
         
         edge = self.document.createElement('svg:path')
         s = {'stroke-linejoin': 'miter', 'stroke-width': '0.01px',