summaryrefslogtreecommitdiff
path: root/label.go
diff options
context:
space:
mode:
Diffstat (limited to 'label.go')
-rw-r--r--label.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/label.go b/label.go
index d298d2d..0414bc5 100644
--- a/label.go
+++ b/label.go
@@ -7,6 +7,8 @@ import (
func (parent *Node) NewLabel(text string) *Node {
newNode := parent.newNode(text, toolkit.Label)
a := newAction(newNode, toolkit.Add)
+ a.Text = text
+ a.S = text
sendAction(a)
return newNode
}