From fd060d623999b86137d9b9ff720d0c203792edef Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Sat, 24 Feb 2024 23:45:31 -0800 Subject: [PATCH] need to add elements to svg root; basic rectangle creation now kind of working --- vector/svgview.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/svgview.go b/vector/svgview.go index da8e9c45..b22a8ce1 100644 --- a/vector/svgview.go +++ b/vector/svgview.go @@ -669,7 +669,7 @@ func (sv *SVGView) SetSVGName(el svg.Node) { // Uses currently active layer if set. func (sv *SVGView) NewEl(typ *gti.Type) svg.Node { es := sv.EditState() - par := sv.This() + par := ki.Ki(sv.Root()) if es.CurLayer != "" { ly := sv.ChildByName(es.CurLayer, 1) if ly != nil {