summaryrefslogtreecommitdiff
path: root/label.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-09 08:25:10 -0500
committerJeff Carr <[email protected]>2023-05-09 08:25:10 -0500
commite19a728d7fe0059b87e7af84c7155fd6559ced6d (patch)
treeb0e40a9102137b73570fc624df03c78f01aaa10e /label.go
parent52b197ebf33192eaeda64bbd4acb2e283a45b097 (diff)
andlabs grid placement still broken
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'label.go')
-rw-r--r--label.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/label.go b/label.go
index a7548e4..b3833e9 100644
--- a/label.go
+++ b/label.go
@@ -7,11 +7,10 @@ import (
func (n *Node) NewLabel(text string) *Node {
newNode := n.newNode(text, toolkit.Label, nil)
- var a toolkit.Action
- a.ActionType = toolkit.Add
- a.Name = text
- a.Text = text
- newaction(&a, newNode, n)
+ n.Name = text
+ n.Text = text
+ a := newAction(n, toolkit.Add)
+ sendAction(a, newNode, n)
return newNode
}