Skip to content

Commit

Permalink
need to add elements to svg root; basic rectangle creation now kind o…
Browse files Browse the repository at this point in the history
…f working
  • Loading branch information
kkoreilly committed Feb 25, 2024
1 parent 1486afa commit fd060d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector/svgview.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fd060d6

Please sign in to comment.